Skip to content

A set of assorted helper functions, extensions and classes in .NET Standard

License

Notifications You must be signed in to change notification settings

Khojasteh/assorted-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assorted.Utils

Most of the time, when I am writing a small program as proof of concept or to test something, I end up writing the same set of helper functions. Finally, I decided to put them all together in a NuGet package to make my life a bit easier. I hope you find it useful.

Content

The library contains the following namespaces:

  • Assorted.Utils.Collections
    • some extensions methods for generic IDictionary and IEnumerable objects
    • a generic and thread-safe object pool class
  • Assorted.Utils.Crypto
    • optimized functions for converting array of bytes to and from hex/base-64 strings
    • MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash and HMAC objects
    • some extension methods for signing and encrypting data using the certificates represented by X509Certificate2 objects
    • helper methods for finding certificates in a certificate store
  • Assorted.Utils.Dates
    • various DateTime extensions and helper functions
    • classes for generating recurring date patterns
  • Assorted.Utils.Serialization
    • helper objects for serializing/deserializing object to/from XML, JSON and binary formats
    • functions and extensions for converting primitive values to and from string in a culture independent format
  • Assorted.Utils.Text

You will find the detailed documentation of the library right here.

Contribution

If you have ideas to improve the functionality or code quality of this library, please don't hesitate to share it here by making a pull request.