EnsureArg 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

Install-Package EnsureArg -Version 1.1.0
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

* 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 2,022 3/19/2015
1.0.1 662 7/29/2014
1.0.0 524 7/29/2014