Found 74 packages
This Guards project is a light-weight toolbox which helps you to protect your public interfaces against invalid parameters being passed over.
An extendable guard implementation.
Package Description
A set of Guard Clauses to validate method arguments, in order to enforce defensive programming practice.
This library provides guard clauses that could be used to guard against not expected values. It provides conditions for objects, strings, numerics, datatime and enumerables. It is possible to configure which exception should be thrown.
The Diagnostics library provides classes that help checking incoming parameters of a method using the Fluent API or not, depending on what you prefer.
The primary purpose of Dybal.Utils.Guards is to simplify writing input data checks to the object.
This Guard utility makes it easy to validate arguments of public methods for null values or specific conditions. It is one of the fundamentals in C# programming as enforced by static code analysis (CA1062).
C# DDD Domain Layer
Tolitech.Results.Guards is a utility library that provides fluent and expressive guard clauses for result-oriented programming.
a simple tool to have a strong guard clause within your Web or WebApi application with custom exception throw
Fluent API for code contract validation supporting multiple data types (int, long, double, decimal, float, string, object). Provides chainable guards with readable syntax for enforcing preconditions and business rules with clear error messages.
A simple code guard library for .NET Standard projects.
A throw helper (guard) library for .NET