The only argument validation file you need, with full refactoring support and strong-typing.

 Guard.NotNull(() => value, value)
   () => stringValue, stringValue)

Install-Package netfx-Guard -Version
dotnet add package netfx-Guard --version
<PackageReference Include="netfx-Guard" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netfx-Guard --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package has no dependencies.

Showing the top 2 GitHub repositories that depend on netfx-Guard:

Repository Stars
The most popular and friendly mocking framework for .NET
A URI building helper library for ASP.NET Web API

Version History

Version Downloads Last updated 40,358 3/26/2013 528 3/25/2013
1.3.3 2,230 12/6/2012
1.3.2 3,681 8/6/2012
1.3.1 23,447 7/2/2011 8,328 6/15/2011 1,722 5/20/2011
1.2.0 17,320 2/9/2011