43 packages tagged with “clause”
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.
A simple, fluent, extensible, and fully customizable library for throwing exceptions using .NET 6+
.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 tool for the job. Providing the job is simple.
Fork of Ardalis.GuardClauses with .NET 9 support.
A universal polyfill library that provides modern ArgumentNullException.ThrowIf* and ArgumentException.ThrowIf* helper methods across all .NET runtimes (.NET Standard 2.0+, .NET Framework 4.6.2+, .NET 6.0+), enabling consistent argument validation patterns regardless of target framework version.
An extensible argument validation package by @JarrydVanHoy that I feel reads quite fluently.
'DRY Guard Clauses for c#. Guard_claws provides DRY guard clauses for c# that look like this: Claws.NotNullNotBlank(() => test);
Useful guard clauses that simplify argument validity checking and make your code more readable.
Provides extension methods for the Guardian source code package.
A lightweight, low overhead, low ceremony, cross platform library for guarding against bad method inputs.
A really simple C# guard clause/validation library
Readable preconditions
Throw helpers and guard methods
Fluent PredicateBuilder and Linq extensions. Helps you in creating a dynamic where clause in your LINQ queries. Also, easy to use Linq Where extensions.
A simple package with guard clause helper methods. See docs for how to extend using your own extension methods.
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 many more examples
Argument guard clauses with ReSharper annotations.
A small library of helper classes
Readable and snappy preconditions
A class invariants helper library
Simple Guard Clause Helper
Generates a Data Table Which Can Be Appended For Genrating Where Clause Of a Query
IsSharp is a guard clause library for C# that provides clean and fluent code with human readable exception messages using expression trees.
Simplest gaurd clauses
.NET Standard library of helper methods to help validate arguments.