EnsureArg 1.1.0
dotnet add package EnsureArg --version 1.1.0
NuGet\Install-Package EnsureArg -Version 1.1.0
<PackageReference Include="EnsureArg" Version="1.1.0" />
paket add EnsureArg --version 1.1.0
#r "nuget: EnsureArg, 1.1.0"
// 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 Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- SmartFormat.NET (>= 1.6.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
* 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.