Ubiquity.ArgValidators
This is a simple library to enable common argument validation in .NET code
Quick Start Notes:
- Install the Ubiquity.ArgValidators NuGet Package
- Start using the validators in your project!
Examples
using namespace Ubiquity.NET.ArgValidators
//...
public static object Load( string path, object foo, int bar )
{
path.ValidateNotNullOrWhiteSpace( nameof( path ) );
foo.ValidateNotNull( nameof( foo ) );
bar.ValidateRange( 3, 5, nameof( bar ) );
//...
}
For more details see the full API documentation