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

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated 42,960 3/26/2013 573 3/25/2013
1.3.3 2,285 12/6/2012
1.3.2 3,963 8/6/2012
1.3.1 26,598 7/2/2011 9,158 6/15/2011 1,784 5/20/2011
1.2.0 18,223 2/9/2011