Skip To Content
Toggle navigation
Packages
Upload
Statistics
Documentation
Downloads
Blog
Sign in
Advanced search filters
Frameworks
.NET
net8.0
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
128 packages returned for Tags:"guard"
Sort by
Relevance
Downloads
Recently updated
Ardalis.
GuardClauses
by:
ardalis
13,003,973 total downloads
last updated
11/9/2023
Latest version:
4.2.0
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
10,402,173 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.
Dawn.
Guard
by:
safak
6,390,293 total downloads
last updated
3/31/2020
Latest version:
1.12.0
argument
parameter
guard
validation
fluent
contract
assertion
A high-performance, extensible argument validation library.
Guard.
Net
by:
george.pancescu
1,213,383 total downloads
last updated
8/26/2022
Latest version:
3.0.0
Guard
preconditions
code
contracts
A simple library that facilitates runtime checks of code and allows to define preconditions and invariants within a method.
RoslynSecurityGuard
by:
h3xstream
1,171,759 total downloads
last updated
7/4/2017
Latest version:
2.3.0
security
vulnerability
guard
owasp
injection
xss
csrf
Roslyn analyzers that aim to help security audits on .NET applications.
CommunityToolkit.
Diagnostics
by:
dotnetfoundation
Microsoft.Toolkit
1,486,924 total downloads
last updated
10/25/2023
Latest version:
8.2.2
dotnet
Community
Toolkit
.NET
Diagnostics
Guard
ThrowHelper
TypeInfo
Extensions
Helpers
This package includes .NET helpers such as: - Guard: Helper methods to verify conditions when running code. - ThrowHelper: Helper methods to efficiently throw exceptions.
Shuttle.
Core.
Contract
by:
EbenRoux
302,557 total downloads
last updated
12/1/2022
Latest version:
11.0.0
shuttle
guard
A guard implementation that performs asserts/assumptions to prevent invalid code execution.
Fluxera.
Guards
by:
Fluxera
362,069 total downloads
last updated
11/23/2023
Latest version:
8.0.1
fluxera
library
guard
An extendable guard implementation.
Moon.
Contracts
by:
djanosik
269,829 total downloads
last updated
7/22/2017
Latest version:
3.1.1
moon
contracts
guard
Simple Guard (or DbC) implementation.
Catel.
Core
by:
catel
geertvanhorrik
2,694,967 total downloads
last updated
12/6/2023
Latest version:
6.0.0-alpha1325
catel
argument
checking
guard
logging
log
ioc
dependency
resolver
factory
More tags
Catel.Core library.
Microsoft.
Toolkit.
Diagnostics
by:
dotnetfoundation
Microsoft.Toolkit
Deprecated
1,019,669 total downloads
last updated
11/18/2021
Latest version:
7.1.2
Windows
Community
Toolkit
WCT
.NET
Diagnostics
Guard
ThrowHelper
TypeInfo
Extensions
More tags
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.
Preconditions.
NET
by:
Philippe_Lecaillon
204,502 total downloads
last updated
2/16/2022
Latest version:
2.0.2
preconditions
guard
check
argument-checks
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.
Seterlund.
CodeGuard
by:
3komma14
198,849 total downloads
last updated
3/17/2014
Latest version:
2.3.4
Argument
Guard
Validation
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.
CavemanTools
by:
mike_sapiens
223,730 total downloads
last updated
5/6/2022
Latest version:
7.0.0
toolkit
tools
utility
reflection
guard
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...
More information
EnsureThatCore
by:
colindekker
157,246 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
299,423 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+
CodeGuard.
dotNetCore
by:
jlessardunimax
60,461 total downloads
last updated
11/4/2019
Latest version:
1.1.0
Guard
.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...
More information
BarsGroup.
CodeGuard
by:
vik.borisov
112,974 total downloads
last updated
5/5/2017
Latest version:
3.2.43
Argument
Guard
Validation
Contracts
Deep fork of the Seterlund.CodeGuard library. Example: Guard.That(arg1).IsNotNull().GreaterThan(100); Throws an exception if conditions are not met.
Vanguard
by:
Reiv
92,800 total downloads
last updated
1/15/2020
Latest version:
5.1.0
Guard
Argument
Parameter
Validation
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.
Narvalo.
Core
by:
chtoucas
Deprecated
73,573 total downloads
last updated
4/7/2017
Latest version:
2.0.0
Require
Guard
Provides helpers on which depend the other Narvalo packages.
Previous
Next