dotnet add package netfx-Guard --version
NuGet\Install-Package netfx-Guard -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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
#r "nuget: netfx-Guard,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install netfx-Guard as a Cake Addin
#addin nuget:?package=netfx-Guard&version=

// Install netfx-Guard as a Cake Tool
#tool nuget:?package=netfx-Guard&version=

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

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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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);


Traverse an enumerable tree, depth or breadth first. Example: var dirs = new DirectoryInfo("C:\\") .Traverse(TraverseKind.BreadthFirst, dir => dir.EnumerateDirectories());


Provides the core APIs to implement the event sourcing pattern and an application event bus.


Provides an easy way to implement the singleton (anti?) pattern so that it is ambient-safe, propagates with a call context and can be overriden per ambient (i.e. in tests).


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.

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 Downloads Last updated 168,557 3/26/2013 1,417 3/25/2013
1.3.3 10,776 12/6/2012
1.3.2 14,655 8/6/2012
1.3.1 118,807 7/2/2011 17,913 6/15/2011 5,053 5/20/2011
1.2.0 72,837 2/9/2011