Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindfiredigital/extension-methods
"Extension.Methods" is a C# library built on top of .Net Standard 2.0. This library contains most of the extension methods that you would use in everyday life. We are committed to adding new methods.
https://github.com/mindfiredigital/extension-methods
csharp csharp-library extension-methods
Last synced: about 2 months ago
JSON representation
"Extension.Methods" is a C# library built on top of .Net Standard 2.0. This library contains most of the extension methods that you would use in everyday life. We are committed to adding new methods.
- Host: GitHub
- URL: https://github.com/mindfiredigital/extension-methods
- Owner: mindfiredigital
- License: mit
- Created: 2019-09-10T09:56:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T22:59:32.000Z (about 2 years ago)
- Last Synced: 2024-11-05T01:38:14.865Z (about 2 months ago)
- Topics: csharp, csharp-library, extension-methods
- Language: C#
- Homepage:
- Size: 168 KB
- Stars: 8
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Extension.Methods
**Extension.Methods** is a C# library built on top of .Net Standard 2.0. This library contains most of the extension methods that you would use in everyday life. We are committed to adding new methods.
The reason why we started this project is very simple. Mostly to automate a redundant process. Each time we used to start a new project, we had to copy and paste these lines of codes to our project. Though most of the extension methods are available in the internet, they are not present under a single library. So we added everything to one place and created a package out of it. Adding this package to your existing/new project is as easy as adding any other NuGet package.
## Installation
The library is hosted on NuGet. You can install the same to your project using both Package Manager and .Net CLI.
Installing **Extension.Methods** using [NuGet Package Manager Console](https://www.nuget.org/)
PM>Install-Package Extension.Methods
Installing **Extension.Methods** using [.Net CLI](https://dotnet.microsoft.com/download)
>dotnet add package Extension.Methods
This will install the packages and its dependencies to your project and you can start using the methods just by importing the **Extension.Methods** namespace.
## Example
```csharp
using System;
using System.Collections.Generic;
using Extension.Methods; // This is important
namespace YourProject.TestApp
{
class Program
{
static void Main(string[] args)
{
var l = new List() { 1, 2, 4, 8, 5, 3 };
l.Sort();
l.InsertSorted(0); // You can use all the available extension methods like this.
Console.ReadKey();
}
}
}
```
## API References
The project contains extension methods for the followings.
- [StringExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/StringExtensionDocs.md)
- [NumberExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/NumberExtensionsDocs.md)
- [DateTimeExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/DateTimeExtensionsDocs.md)
- [EnumExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/EnumExtensionsDocs.md)
- [JsonExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/JsonExtensionsDocs.md)
- [GenericExtensions](https://github.com/ssswagatss/extension-methods/blob/development/Docs/GenericExtensionsDocs.md)## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.## Feedback
Any feedback or issues can be added to the [issues](https://github.com/ssswagatss/extension-methods/issues) for this project in GitHub.## License
Copyright (c) Swagat Swain. All rights reserved.Licensed under the [MIT](https://choosealicense.com/licenses/mit/) license.