This project is meant to extend the capabilities of the System namespace with extra utility functions.
The most notable types in this assembly include:
Ensure
: a handy and lightweight validation class.TryParse
: try parsing string to integers
- You must have Visual Studio 2019 Community or higher.
- The dotnet cli is also highly recommended.
- Run dotnet restore
- Run dotnet build
- Run dotnet test
Use the package manager NuGet to install Dime.System:
dotnet add package Dime.System
using System;
public void MyMethod(MyClass myClassParameter)
{
Ensure.Argument.NotNull(myClassParameter, nameof(myClassParameter), "Parameter cannot be null");
}
Pull requests are welcome. Please check out the contribution and code of conduct guidelines.