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
12,916,035 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,378,634 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,359,258 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,209,214 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,167,436 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,456,940 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,388 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
361,938 total downloads
last updated
11/23/2023
Latest version:
8.0.1
fluxera
library
guard
An extendable guard implementation.
Moon.
Contracts
by:
djanosik
269,633 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,165 total downloads
last updated
11/15/2023
Latest version:
6.0.0-alpha1311
catel
argument
checking
guard
logging
log
ioc
dependency
resolver
factory
More tags
Catel.Core library.
Microsoft.
Toolkit.
Diagnostics
by:
dotnetfoundation
Microsoft.Toolkit
Deprecated
1,012,250 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
203,071 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,655 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,690 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
156,824 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
60,339 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
Throw
by:
amantinband
Mantinband
296,385 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+
BarsGroup.
CodeGuard
by:
vik.borisov
112,875 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
91,935 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.
AllOverIt.
Assertion
by:
mjfreelancing
92,391 total downloads
last updated
11/21/2023
Latest version:
7.0.0-rc.47
AllOverIt
Utilities
Asssertion
Guard
This package contains a useful collection of pre and post condition assertion extension methods and a fluent-like approach to throwing exceptions based on a given condition or custom predicate.
Previous
Next