Extension.Methods 1.0.0

dotnet add package Extension.Methods --version 1.0.0
                    
NuGet\Install-Package Extension.Methods -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Extension.Methods" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Extension.Methods" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Extension.Methods" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Extension.Methods --version 1.0.0
                    
#r "nuget: Extension.Methods, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Extension.Methods@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Extension.Methods&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Extension.Methods&version=1.0.0
                    
Install as a Cake Tool

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.

Published and maintained by Mindfire Digital LLP. Visit https://www.mindfiresolutions.com/ for more information.

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

PM>Install-Package Extension.Methods

Installing Extension.Methods using .Net CLI

>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

    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<int>() { 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.

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 for this project in GitHub.

License

Copyright (c) 2019 Mindfire Digital LLP. All rights reserved.

Licensed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 193 11/3/2025
0.3.0 15,949 3/8/2021
0.2.0 902 9/24/2019
0.1.0 701 9/20/2019
0.0.1 708 9/16/2019

Fixes issues with Datetime methods