https://github.com/ubiquitydotnet/argument.validators
Common annotation and argument validation support
https://github.com/ubiquitydotnet/argument.validators
dotnet validation-library
Last synced: about 1 year ago
JSON representation
Common annotation and argument validation support
- Host: GitHub
- URL: https://github.com/ubiquitydotnet/argument.validators
- Owner: UbiquityDotNET
- License: mit
- Created: 2017-09-17T21:04:07.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2021-11-30T00:54:56.000Z (over 4 years ago)
- Last Synced: 2024-05-28T08:20:00.931Z (about 2 years ago)
- Topics: dotnet, validation-library
- Language: PowerShell
- Homepage: https://ubiquitydotnet.github.io/Argument.Validators/
- Size: 711 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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

## Build Status
[](https://github.com/UbiquityDotNET/Argument.Validators/actions/workflows/pr-build.yml)
[](https://github.com/UbiquityDotNET/Argument.Validators/actions/workflows/release-build.yml)
## Examples
```C#
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](https://ubiquitydotnet.github.io/Argument.Validators/) on all validators is available online