GitHub - UbiquityDotNET/Argument.Validators: Common annotation and argument validation support · GitHub
Skip to content

UbiquityDotNET/Argument.Validators

Folders and files

Repository files navigation

Argument.Validators

Common annotation and argument validation support

NOTE v7.00 changed the name and namespace for these validators to conform to common standards for the Ubiquity.NET organization.

Nuget

Nuget

Build Status

CI-Build Release-Build

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 ) );

    //...
}

Complete documentation on all validators is available online

About

Common annotation and argument validation support

Topics

Resources

License

Stars

Watchers

Forks

Contributors