EnsureArg 1.0.1

.NET Framework 4.0
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package EnsureArg -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package EnsureArg --version 1.0.1
<PackageReference Include="EnsureArg" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EnsureArg --version 1.0.1
#r "nuget: EnsureArg, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EnsureArg as a Cake Addin
#addin nuget:?package=EnsureArg&version=1.0.1

// Install EnsureArg as a Cake Tool
#tool nuget:?package=EnsureArg&version=1.0.1

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

Product Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 2,911 3/19/2015
1.0.1 1,045 7/29/2014
1.0.0 907 7/29/2014

First release of EnsureArg and EnsureArg.BclExtensions. Version 1.0.1 includes intellisense Xml files.