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.

NuGet packages (36)

Showing the top 5 NuGet packages that depend on netfx-Guard:

Package Downloads
Strong-typed static reflection via Reflect: // Void static method MethodInfo cw = Reflect.GetMethod( () => Console.WriteLine); // Instance void method MethodInfo mi = Reflect<IView>.GetMethod(v => v.Show); // Boolean returning instance method MethodInfo pi = Reflect<IViewModel> .GetMethod<bool>(v => v.Save);
An implementation of WPF ICommand that allows passing delegates/lambdas for the implementation.
Traverse an enumerable tree, depth or breadth first. Example: var dirs = new DirectoryInfo("C:\\") .Traverse(TraverseKind.BreadthFirst, dir => dir.EnumerateDirectories());
Provides the implementation of a reactive extensions event stream, allowing trending and analysis queries to be performed in real-time over the events pushed through the stream.
Provides the IEventStream interface of a reactive extensions stream, allowing trending and analysis queries to be performed in real-time over the events pushed through the stream, as well as flexible subscription models.

GitHub repositories (2)

Showing the top 2 popular 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 54,527 3/26/2013 699 3/25/2013
1.3.3 2,631 12/6/2012
1.3.2 5,388 8/6/2012
1.3.1 48,947 7/2/2011 11,538 6/15/2011 2,226 5/20/2011
1.2.0 22,735 2/9/2011