Author Top Nguyen
- .Net Core Utilities methods.
- Core of all Elect modules, standalize ecosystem.
- Package Manager
PM> Install-Package Elect.Core
- .NET CLI
dotnet add package Elect.Core
-
Almost Utilities have "Helper" and "Extensions", "Extensions" will call method insite "Helper" so feel free to choice one of them to use.
-
Utilities
- Action
- Assembly
- Assembly Helper
- Assembly Extensions
- Assembly Loader: Load assembly from folder.
- Attributes
- Check - Validator
- Check Helper: Check parameter value and throw exception if invalid data.
- Configuration: Extend of
IConfiguration
- Configuration Helper: Support load configuration depend on Machine/Window User Name or Environment.
- Configuration Extensions
- Constants
- Configuration File Name: Content all best practise configuration file name such as: "appsettings.json", "connectionconfig.json" and so on. Use this constants to prevent "hard string" and mistake relate to it in your code.
- Configuration Section Name: Content all best practise section name in configuration file, such as: "ConnectionStrings" and so on. Use this constants to prevent "hard string" and mistake relate to it in your code.
- Formatting: Content all best practise format such as: "JsonSerializerSettings", DateTime format and so on. Use this to prevent difference format among your modules.
- DateTime
- Dictionary
- Environment
- Environment Helper: Get and check methods for current/run time environment.
- Guid
- JsonContractResolver: Extend of Newtonsoft.Json
- Without Virtual Contract Resolver: Remove all
virtual
properties insite object when serialize it.
- Without Virtual Contract Resolver: Remove all
- JsonConverters: Extend of Newtonsoft.Json
- Object to Array: Convert object/property (complex type) to array. Eg: result like "["string", 1, true]".
- Linq
- Linq Extensions: Extend linq such as:
DistinctBy
andRemoveWhere
.
- Linq Extensions: Extend linq such as:
- Object
- Security
- Security Helper: Support generate salt, hash, encrypt/descrypt.
- Similarity
- Jaro Winkler: Support calculate score (0-1 => 0% - 100%) as match percentage between 2 strings. Please read more the algorithm via wiki.
- String
- String Helper: Support random, normlaize and base 64 format handle.
- Type
- XML
Elect.Core is licensed under the MIT License.