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 39,820 3/26/2013 527 3/25/2013
1.3.3 2,228 12/6/2012
1.3.2 3,671 8/6/2012
1.3.1 22,890 7/2/2011 8,230 6/15/2011 1,716 5/20/2011
1.2.0 17,235 2/9/2011