DotNetCore.Extensions 16.72.0

.NET 6.0
NuGet\Install-Package DotNetCore.Extensions -Version 16.72.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.
dotnet add package DotNetCore.Extensions --version 16.72.0
<PackageReference Include="DotNetCore.Extensions" Version="16.72.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetCore.Extensions --version 16.72.0
#r "nuget: DotNetCore.Extensions, 16.72.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetCore.Extensions as a Cake Addin
#addin nuget:?package=DotNetCore.Extensions&version=16.72.0

// Install DotNetCore.Extensions as a Cake Tool
#tool nuget:?package=DotNetCore.Extensions&version=16.72.0



public static class AssemblyExtensions
    public static FileInfo FileInfo(this Assembly assembly) { }


public static class ByteExtensions
    public static byte[] Compress(this byte[] bytes) { }

    public static byte[] Decompress(this byte[] bytes) { }

    public static T Object<T>(this byte[] bytes) { }


public static class ClaimExtensions
    public static void AddJti(this ICollection<Claim> claims) { }

    public static void AddRoles(this ICollection<Claim> claims, string[] roles) { }

    public static void AddSub(this ICollection<Claim> claims, string sub) { }


public static class ClaimsPrincipalExtensions
    public static Claim Claim(this ClaimsPrincipal claimsPrincipal, string claimType) { }

    public static IEnumerable<string> ClaimRoles(this ClaimsPrincipal claimsPrincipal) { }

    public static IEnumerable<string> Claims(this ClaimsPrincipal claimsPrincipal, string claimType) { }

    public static string ClaimSub(this ClaimsPrincipal claimsPrincipal) { }

    public static long Id(this ClaimsPrincipal claimsPrincipal) { }

    public static IEnumerable<T> Roles<T>(this ClaimsPrincipal claimsPrincipal) where T : Enum { }

    public static T RolesFlag<T>(this ClaimsPrincipal claimsPrincipal) where T : Enum { }


public static class DirectoryInfoExtensions
    public static FileInfo GetFile(this DirectoryInfo directoryInfo, string name) { }


public static class EnumExtensions
    public static string GetDescription(this Enum value) { }

    public static string[] ToArray(this Enum value) { }


public class JsonStringLocalizer : IStringLocalizer
   public JsonStringLocalizer(string path) { }


public static class ObjectExtensions
    public static byte[] Bytes(this object obj) { }

    public static IEnumerable<PropertyInfo> GetPropertiesWithAttribute<T>(this object obj) where T : Attribute { }

    public static string Serialize(this object obj) { }

    public static void SetProperty(this object obj, string name, object value) { }


public static class QueryableExtensions
    public static IQueryable<T> Filter<T>(this IQueryable<T> queryable, string property, object value) { }

    public static IQueryable<T> Filter<T>(this IQueryable<T> queryable, string property, string comparison, object value) { }

    public static IQueryable<T> Order<T>(this IQueryable<T> queryable, string property, bool ascending) { }

    public static IQueryable<T> Page<T>(this IQueryable<T> queryable, int index, int size) { }


public static class StreamExtensions
    public static string ToBase64String(this Stream stream) { }


public static class StringExtensions
    public static T Deserialize<T>(this string value) where T : class { }

    public static string LowerCamelCase(this string value) { }

    public static string NonSpecialCharacters(this string value) { }

    public static string NumericCharacters(this string value) { }

    public static string RemoveExtraSpaces(this string value) { }
Product Versions
.NET net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DotNetCore.Extensions:

Package Downloads




GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
16.72.0 112 9/13/2022