A one-stop library for common utilities for developing .NET applications.
Toolblox
aims to be the only utility-providing library you need for any .NET project by covering as much commonly required behaviour as possible.
- Boolean: Access to common boolean-based extension behaviours.
- Collections: Access to common collection extension behaviours.
- Dates: Access to common date extension behaviours.
- JSON: Access to common JSON-based behaviours.
- Numbers: Access to common numeric-based extension behaviours.
- Objects: Access to generic object extension behaviours.
- Strings: Access to common string-based extension behaviours.
If you find this library useful and wish to take a moment to say a simple thanks, or support its development, then a star or donation would be hugely appreciated!
Documentation of the available behaviours can be found within the wiki, here.
Toolblox
can be interfaced with in multiple ways, either via an instance, a static call, or an extension method.
using Cognophile.Toolblox;
...
public static void DoSomething(string myString)
{
...
Toolblox blox = new();
bool result = blox.StringBlock.IsNull(myString);
...
}
using Cognophile.Toolblox;
...
public static void DoSomething(string myString)
{
...
var result = Toolblox.Strings.IsNull(myString);
...
}
using Cognophile.Toolblox.Blocks.Extensions.Strings;
...
public static void DoSomething(string myString)
{
...
var result = myString.IsNull();
...
}
Contributions of all kinds are welcome - whether it be submitting a suggestion for how the library could be improved or extended, or by submitting a pull request with the completed work to the project. However, before submitting any suggestions, please read through CONTRIBUTING.md
to ensure your work is in the best state to be accepted.
Icon attribution: Freepik from www.flaticon.com