Library made from coders to coders with some utilities used in GreenConcept projects.
Highly tested .NET library with some important and useful utilities function widely used in GreenConcept projects. The library contains several extension methods in order to simplify the usage of common programming routines. The utilities are divided into namespaces:
- Collections: Logics related to
IEnumerable<T>
and other collections likeDictionary
. Some main operations areDistinctBy
,Shuffle
,Contains
andToDictionaryList
; - Crypto: Logic related to Hashing (MD5 and SHA1), Symmetric and Asymmetric cryptography;
- Data: Logic related to data (XML, Json, Cache, Mail, etc...);
- Enumeration: Logic related to
Enums
; - Imaging: Logic related to
images
andbitmaps
, including high speed bits manipulation,Scale
,Crop
,FixOrientation
(EXIF), get imagesMimeTypes
andbase64
conversions - IO: Logic related to files and directories, including Regex search,
GetEncodingFromBOM
, detect file availability and others; - Linq: Logic related to
Linq
andExpression
, inclduing canonicalTrue
orFalse
expressions and logical operatorsAnd
andOr
to compose complex operations; - Performance: Simple stopwatch to measure
Actions
execution time; - String: Logic related to
String
processing including logic for removing numbers, diacritics, alphanumeric, conversion from and tobase64
andhex
; It also include logics for brazilian commom identifiers (CNPJ (portuguese), CPF (portuguese), RG (portuguese) and Boleto (portuguese)); - Web: Logic related to Web. Methods for calling WebAPIs (GET and POST) and parsing the results;
- Workflow: Logic for automata transition validations;
GreenUtil is available as a NuGet package. You can install it using the NuGet Package Console window:
PM> Install-Package GreenUtil
The library is designed to depend as little as possible to other libraries. With that in mind, it depends only on Newtonsoft.Json and Sytem.Drawing.Commom