A simple package by @ardalis and @nimblepros with guard clause helper methods. See docs for how to extend using your own extension methods defined in your project.
Argument validation made simple and unified. It ensures arguments conforms to simple validation rules and provides an uniformed exception throwing strategy if arguments are invalid.
Evolved toolkit for developing applications faster and with less code. Includes general purpose extension methods, guard clauses, predefined value objects (PasswordHash,Email, Percentage etc) and specialized helper classes for specific tasks.
Guard and Validator library.
Example: Guard.That(arg1).IsNotNull().GreaterThan(100);
Throws an exception if conditions are not met.
Supports the ability to get a list of the failed conditions.
.NET Core 2.0 & Standard 2.0 port of A simple guard clause project helping you with validation and uniformed exception throwing when validating arguments.
Preconditions provide convenience static methods that help to check that a method or a constructor is invoked with proper parameter or not. In other words it checks the pre-conditions.
.NET Core port of Seterlund.CodeGuard, a Guard and Validator library.
Example: Guard.That(arg1).IsNotNull().GreaterThan(100);
Throws an exception if conditions are not met.
Supports the ability to get a list of the failed conditions.
A simple guard library for validating method parameters without being a complete validation library.
This library makes it easy to validate method arguments in a uniform way.
This package includes .NET Standard code only helpers such as:
- Guard: Helper methods to verify conditions when running code.
- ThrowHelper: Helper methods to efficiently throw exceptions.
An easy-to-use management system for the ASP.NET Membership system built for ASP.NET MVC 3 applications. This application comes complete with an Area, Controllers, Views and everything you need to start managing your ASP.NET MVC 3 application immediately.
Guardian. Mostly of null values.
An unobtrusive, lightweight, guard clause source code package: less than 300 lines of code.
Should be used like this:
Guard.Against.Null(() => parameter);
May be extended like this:
Guard.Against.Empty(() => collection);
Possibly the best...
More information