YITC.DotNetCore.Extensions 16.30.0.4

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

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

DotNetCore.Extensions

AssemblyExtensions

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

ByteExtensions

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) { }
}

ClaimExtensions

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) { }
}

ClaimsPrincipalExtensions

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 { }
}

DirectoryInfoExtensions

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

EnumExtensions

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

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

ObjectExtensions

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

    public static string Serialize(this object obj) { }
}

QueryableExtensions

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) { }
}

StringExtensions

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 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 was computed.  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 was computed.  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.
  • net6.0

    • No dependencies.

NuGet packages (2)

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

Package Downloads
YITC.DotNetCore.Objects

DotNetCore.Objects forked by YITC

YITC.DotNetCore.RabbitMQ

DotNetCore.RabbitMQ forked by YITC

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
16.30.0.4 857 4/15/2022
16.26.0.3 725 3/17/2022
16.26.0.2-yitc 215 3/16/2022
16.26.0 703 3/16/2022
16.26.0-yitc 206 3/16/2022