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.
.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.
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
A lightweight and extensible guard clause library.
Example:
Ensure.Arg(param1, "param1").IsNotNull();
The library is easily extensible through the use of extension methods. Even the main Ensure.Arg(...) call can be overridden to whatever you prefer e.g. Verify.That(...)
See the project site for...
More information