SystemLibrary.Common.Net
7.7.0.1
dotnet add package SystemLibrary.Common.Net --version 7.7.0.1
NuGet\Install-Package SystemLibrary.Common.Net -Version 7.7.0.1
<PackageReference Include="SystemLibrary.Common.Net" Version="7.7.0.1" />
paket add SystemLibrary.Common.Net --version 7.7.0.1
#r "nuget: SystemLibrary.Common.Net, 7.7.0.1"
// Install SystemLibrary.Common.Net as a Cake Addin
#addin nuget:?package=SystemLibrary.Common.Net&version=7.7.0.1
// Install SystemLibrary.Common.Net as a Cake Tool
#tool nuget:?package=SystemLibrary.Common.Net&version=7.7.0.1
SystemLibrary Common Net
Description
Library with classes and methods for every >= .NET 7 application
Features
- Extensions for Strings, Arrays, Lists, Enums, ... such as Is(), IsNot() and ToEnum()!
- Dump.Write() "equivalent" to console.log in javascript!
- Config<> class, inherit it and it reads .json config file that has the same name, and also runs transformations based on EnvironmentName!
- ToValue and ToText extensions on Enum, through two attributes: EnumText, EnumValue!
- ToJson() on any object, converting to json string or to a C# model from a json string!
- PartialJson on a json string, to convert only a part of the whole json, into the C# class, no need to model it all!
- Fire and forget in Async.Run()!
- Cryptation of string or byte[] through the extension methods: Encrypt() and Decrypt() - uses AES CBC PKCS7!
- Obfuscate a string through extension Obfuscate() and Deobfuscate()!
- Convert to Base64 for string and byte[] through extension method ToBase64()!
- Hash anything through ToSha1(), ToSha256() and ToMd5() on any string, byte[] or even Stream!
Requirements
- >= .NET 7
Latest Release Notes
- 7.7.0.1
- Json() date-time conversion formats changed, supporting a lot more date-time formats by default, but might've removed one or two (breaking change)
- Json() custom converters passed gets precedence over the built-in converters, so built-in converters failures wont happen before your own
- Json() one overload removed, and comments and samples are adjusted to whats happening in regards to camel-casing (breaking change)
- Json(camelCase:true/false) added as extension to any object
- Assemblies black list updated with "Grpc." and "FluentEmail" (breaking change)
- StreamExtension.ToSha256Hash added
- StringBuilderExtensions.IndexOf optimized by ~1/3
- Async.Run comment adjusted
Version history
- View git history of this file if interested
Installation
- Simply install the nuget package
- Installation guide
Documentation
Nuget
Source
Suggestions and feedback
License
- Free
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 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. |
-
net7.0
- Microsoft.AspNetCore.DataProtection (>= 7.0.18)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 7.0.0)
- Microsoft.Extensions.Configuration.Json (>= 7.0.0)
- Microsoft.Extensions.Configuration.Xml (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on SystemLibrary.Common.Net:
Package | Downloads |
---|---|
SystemLibrary.Common.Web
Library with classes and methods for every >= .NET 7 web application https://github.com/systemlibrary/systemlibrary-common-web/#Description Installation https://systemlibrary.github.io/systemlibrary-common-web/Install.html Documentation with sample code https://systemlibrary.github.io/systemlibrary-common-web/ |
|
SystemLibrary.Common.Net.Json
SystemLibrary.Common.Net.Json for any .NET >= 5 application - various reuseable extensions and a partial json searcher Selling points: * Extension for converting C# object to json string * Extension for converting json string to C# object * Extension for converting parts of a json string to C# object Documentation: https://systemlibrary.github.io/systemlibrary-common-net-json/ Source code: https://github.com/systemlibrary/systemlibrary-common-net-json/ |
GitHub repositories
This package is not used by any popular GitHub repositories.