Guardian 0.5.0

Guardian. Mostly of null values.
An unobtrusive, lightweight, guard clause source code package: less than 300 lines of code.

     Should be used like this:
     Guard.Against.Null(() => parameter);

     May be extended like this:
     Guard.Against.Empty(() => collection);

Possibly the best tool for the job. Providing the job is simple.

There is a newer version of this package available.
See the version list below for details.
Install-Package Guardian -Version 0.5.0
dotnet add package Guardian --version 0.5.0
<PackageReference Include="Guardian" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Guardian --version 0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Complete re-write of IL parsing for expression parsing.
Added DebuggerStepThrough to Against property getter.
Fixed bug where generic argument expressions don't always parse.


This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Guardian:

Package Downloads
Provides extension methods for the Guardian source code package.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.7.0 2,289 4/24/2016
0.7.0-beta70 553 4/24/2016
0.6.0-beta26 662 3/1/2015
0.5.0 1,136 7/27/2013
0.4.0 749 6/16/2013
0.3.3 768 6/2/2013
0.3.1 702 5/31/2013