NSExt 2.2.0

dotnet add package NSExt --version 2.2.0                
NuGet\Install-Package NSExt -Version 2.2.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="NSExt" Version="2.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NSExt --version 2.2.0                
#r "nuget: NSExt, 2.2.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.
// Install NSExt as a Cake Addin
#addin nuget:?package=NSExt&version=2.2.0

// Install NSExt as a Cake Tool
#tool nuget:?package=NSExt&version=2.2.0                

ns-ext

| En The ns-ext is a .NET extension function library, containing the following types of extension modules:

Features File name
Byte type extension ByteExtensions.cs
Character Type Extensions CharExtensions.cs
Date Type Extensions DateTimeExtensions.cs
Database command type extension DbCommandExtensions.cs
Decimal Number Type extension DecimalExtensions.cs
Enumable type extension EnumerableExtensions.cs
Enumeration type extension EnumExtensions.cs
General type extension GenericExtensions.cs
Integer type extension IntExtensions.cs
Json Serialization option type extension JsonSerializerOptionsExtensions.cs
Log type extension LoggerExtensions.cs
Long integer extension LongExtensions.cs
Object type extension ObjectExtensions.cs
Stream type extension StreamExtensions.cs
String type extension StringExtensions.cs
Prototype type extension TypeExtensions.cs
Resource locator type extension UriExtensions.cs

Quick start

Install

dotnet add package NSExt --prerelease

Example

using NSExt.Extensions;

internal static class Program
{
    private class Person
    {
        public string Name { get; set; }
        public int Age { get; set; }
    }
    public static void Main(string[] args)
    {
        var person =
        """
{
  "Name": "Jason",
  "Age": "30"
}
""".Object<Person>();

        Console.WriteLine(person.Json());
    }
}

Output

{"name":"Jason","age":30}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on NSExt:

Repository Stars
nsnail/NetAdmin
通用后台权限管理系统、快速开发框架(基于C#12/.NET9、Vue3/Vite、Element Plus等现代技术构建,具有十分整洁、优雅的编码规范)
Version Downloads Last updated
2.2.0 889 7/2/2024
2.1.0 739 3/1/2024
2.0.11 400 12/15/2023
2.0.10 111 12/14/2023
2.0.9 85 12/14/2023
2.0.7 86 12/14/2023
2.0.6 91 12/14/2023
2.0.5 100 12/14/2023
2.0.4 110 12/14/2023
2.0.3 109 12/14/2023
2.0.2 130 12/14/2023
2.0.1 106 12/14/2023
2.0.0 116 12/14/2023
1.1.0 334 9/28/2023
1.0.15-alpha.0.5 77 9/7/2023
1.0.15-alpha.0.4 72 8/8/2023
1.0.15-alpha.0.2 60 8/8/2023
1.0.15-alpha.0.1 87 4/19/2023
1.0.14 267 2/27/2023
1.0.13 359 2/8/2023
1.0.13-alpha.0.5 90 2/27/2023
1.0.13-alpha.0.2 112 1/29/2023
1.0.13-alpha.0.1 97 1/19/2023
1.0.12 302 1/15/2023
1.0.11 292 1/8/2023
1.0.11-alpha.0.5 100 1/14/2023
1.0.11-alpha.0.4 94 1/10/2023
1.0.11-alpha.0.2 106 1/4/2023
1.0.11-alpha.0.1 138 12/16/2022 1.0.11-alpha.0.1 is deprecated because it has critical bugs.
1.0.9 291 1/4/2023
1.0.9-alpha.0.5 105 12/27/2022
1.0.9-alpha.0.2 94 12/15/2022
1.0.9-alpha.0.1 94 12/13/2022
1.0.8 316 12/9/2022
1.0.6 333 11/30/2022
1.0.5 326 11/30/2022
1.0.4 313 11/30/2022
1.0.3 297 11/29/2022
1.0.2 327 11/25/2022
1.0.0 115 10/31/2022