A simply arguments validation library with fluent API.
Examples:
Arg.NotNull(() => model);
Arg.Validate(color, nameof(color))
.NotNullOrWhitespace()
.LengthInRange(2, 20);
// passangerCount is Nullable type...
More information
File type checker that checks the file's magic numbers/identifying bytes. Useful for verifying uploaded files in web applications.
NuGet package of code originally written by https://github.com/mjolka and extended to allow for dependency injecting the known file types.
System.ComponentModel.Annotations.Validation is a extension of System.ComponentModel validation engine. Supports validation of properties and invariants for object graphs.
The "Product Code Validator" project aims to facilitate the validation of product identifiers such as EAN, ISBN or ASIN by checking, if a tested value matches the required format.
DynamicVNET is .NET Standard library that was created help to develop reuse dynamic validation. It helps to build some rules on POCO and own blackbox libs. It has rich conveniences and features as a Fluent API in runtime, wrapped over DataAnnotation attributes and supports a cross-platform...
More information
Country Validator is a library that can be used to validate VAT/TVA codes, social security numbers and TINs (Tax Identification Numbers). All countries from European Union are supported and United States.
Stanford-password-policy-dotnet is a password validator library for ASP.NET Core.
The Stanford password policy is a dynamic password policy that encourages the use of easy to remember, yet secure passphrases instead of hard to remember passwords.
Helper functions to aid in argument validation for C# functions.
Example Usage:
Throw.IfNull(argument, nameof(argument));
Throw.IfNullOrEmpty(argument, nameof(argument));