EnsureArg 1.1.0

.NET Framework 4.0
NuGet\Install-Package EnsureArg -Version 1.1.0
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.1.0
<PackageReference Include="EnsureArg" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EnsureArg --version 1.1.0
#r "nuget: EnsureArg, 1.1.0"
#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.1.0

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

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,915 3/19/2015
1.0.1 1,048 7/29/2014
1.0.0 910 7/29/2014

* 1.1.0 - Added IsDefaultValue and IsNotDefaultValue to BclExtensions and EnsureArg (Issues #2 and #3).
              - Upgraded SmartFormat.NET dependency to latest version 1.6.1 (Issue #1).
      * 1.0.1 - Included intellisense Xml files.
      * 1.0.0 - First release of EnsureArg and EnsureArg.BclExtensions.