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
125 packages returned for Tags:"Guard"
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.
Dawn.
Guard
by:
safak
5,882,122 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,134,837 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,109,073 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,086,334 total downloads
last updated
7/6/2023
Latest version:
8.2.1
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
285,318 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
356,744 total downloads
last updated
7/20/2023
Latest version:
7.1.1
fluxera
library
guard
An extendable guard implementation.
Moon.
Contracts
by:
djanosik
260,030 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,512,351 total downloads
last updated
9/19/2023
Latest version:
6.0.0-alpha1271
catel
argument
checking
guard
logging
log
ioc
dependency
resolver
factory
More tags
Catel.Core library.
Microsoft.
Toolkit.
Diagnostics
by:
dotnetfoundation
Microsoft.Toolkit
Deprecated
923,764 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.
CavemanTools
by:
mike_sapiens
220,684 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
Seterlund.
CodeGuard
by:
3komma14
194,292 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.
Preconditions.
NET
by:
Philippe_Lecaillon
177,890 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.
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.
CodeGuard.
dotNetCore
by:
jlessardunimax
58,611 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
109,184 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
86,636 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.
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+
Narvalo.
Core
by:
chtoucas
Deprecated
71,963 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