Skip To Content
Toggle navigation
Packages
Upload
Statistics
Documentation
Downloads
Blog
Sign in
Frameworks
.NET
net7.0
net6.0
net5.0
.NET Core
netcoreapp3.1
netcoreapp3.0
netcoreapp2.2
netcoreapp2.1
netcoreapp2.0
netcoreapp1.1
netcoreapp1.0
.NET Standard
netstandard2.1
netstandard2.0
netstandard1.6
netstandard1.5
netstandard1.4
netstandard1.3
netstandard1.2
netstandard1.1
netstandard1.0
.NET Framework
net481
net48
net472
net471
net47
net462
net461
net46
net452
net451
net45
net40
net35
net30
net20
Package type
All types
Dependency
.NET tool
Template
Options
Include prerelease
37 packages returned for Tags:"clause"
Sort by
Relevance
Downloads
Recently updated
Ardalis.
GuardClauses
by:
ardalis
11,532,052 total downloads
last updated
8/1/2023
Latest version:
4.1.1
guard
clause
clauses
assert
assertion
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.
Ensure.
That
by:
danielwertheim
9,942,303 total downloads
last updated
10/27/2021
Latest version:
11.0.0-p3
ensure-that
ensure
that
argument
validation
guard
clause
contracts
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.
EnsureThatCore
by:
colindekker
151,053 total downloads
last updated
7/17/2017
Latest version:
1.0.0
argument
validation
guard
clause
.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.
Throw
by:
amantinband
Mantinband
245,765 total downloads
last updated
9/11/2023
Latest version:
1.4.0
argument
guard
clause
exception
contract
assert
assertions
validation
A simple, fluent, extensible, and fully customizable library for throwing exceptions using .NET 6+
Guardian
by:
cameronfletcher
46,186 total downloads
last updated
4/24/2016
Latest version:
0.7.0
guard
clause
null
arguments
guardian
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);...
More information
guard_claws
by:
brendanjerwin
11,597 total downloads
last updated
4/6/2011
Latest version:
0.0.8
littlebits
guard
clause
claws
'DRY Guard Clauses for c#. Guard_claws provides DRY guard clauses for c# that look like this: Claws.NotNullNotBlank(() => test);
GuardAgainst
by:
fallenidol
23,672 total downloads
last updated
5/14/2022
Latest version:
5.0.0
GuardAgainst
guard
against
guard
clause
exceptions
exception
handling
dotnet
c#
Useful guard clauses that simplify argument validity checking and make your code more readable.
ThrowIfArgument
by:
JarrydVanHoy
11,622 total downloads
last updated
12/9/2022
Latest version:
1.0.3
argument
validation
guard
clause
clauses
assert
assertion
An extensible argument validation package by @JarrydVanHoy that I feel reads quite fluently.
Guardian.
Extensions
by:
cameronfletcher
11,651 total downloads
last updated
4/24/2016
Latest version:
0.7.0
guard
clause
null
arguments
guardian
extensions
Provides extension methods for the Guardian source code package.
Krav
by:
pmacnaughton
4,616 total downloads
last updated
2/16/2014
Latest version:
0.1.1
argument
validation
guard
clause
Readable preconditions
Ladon.
Net
by:
Yortw
9,071 total downloads
last updated
2/6/2018
Latest version:
1.0.2
ladon
guard
clause
null
range
zero
A lightweight, low overhead, low ceremony, cross platform library for guarding against bad method inputs.
Nerdle.
Ensure
by:
nerdle
13,254 total downloads
last updated
1/18/2016
Latest version:
1.3.0
parameter
checking
argument
validation
ensure
guard
clause
assert
A really simple C# guard clause/validation library
EnsureArg
by:
ShaneT
5,500 total downloads
last updated
3/19/2015
Latest version:
1.1.0
argument
validation
guard
clause
ensure
ensurearg
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...
More information
Krav.
Simple
by:
pmacnaughton
2,433 total downloads
last updated
2/16/2014
Latest version:
0.1.1
argument
validation
guard
clause
Readable and snappy preconditions
Dibware.
Helpers
by:
dibley1973
2,224 total downloads
last updated
7/24/2016
Latest version:
1.1.1
c#
helper
guard
clause
A small library of helper classes
ThrowHelper
by:
elemarjr
2,298 total downloads
last updated
5/27/2012
Latest version:
0.0.1
Helper
Guard
Clause
Throw
Simple Guard Clause Helper
GuardMe
by:
a-ctor
1,950 total downloads
last updated
7/16/2017
Latest version:
1.1.0
annotations
arguments
clause
guard
Argument guard clauses with ReSharper annotations.
GuardMe.
Inline
by:
a-ctor
1,888 total downloads
last updated
7/16/2017
Latest version:
1.1.0
annotations
arguments
clause
guard
Argument guard clauses with ReSharper annotations.
check
by:
benscott
12,225 total downloads
last updated
6/2/2016
Latest version:
1.2.0
class
invariant
invariants
domain
validation
check
guard
clause
assert
assertion
More tags
A class invariants helper library
QueryBuilder_Beta
by:
War
993 total downloads
last updated
2/8/2017
Latest version:
1.0.0
Clause
Generator
Generates a Data Table Which Can Be Appended For Genrating Where Clause Of a Query
Previous
Next