netfx-Guard 1.2.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package netfx-Guard --version 1.2.0.4                
NuGet\Install-Package netfx-Guard -Version 1.2.0.4                
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="1.2.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netfx-Guard --version 1.2.0.4                
#r "nuget: netfx-Guard, 1.2.0.4"                
#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=1.2.0.4

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

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

Examples:
 Guard.NotNull(() => value, value)
 Guard.NotNullOrEmpty(
   () => 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
netfx-Reflector

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

netfx-System.Collections.Generic.IEnumerable.Traverse

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

netfx-Patterns.EventSourcing

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

netfx-System.AmbientSingleton

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

Adapter.Interfaces.Source

Only two APIs are provided: the IAdapterService and its facade extension method As in the Adapters type. You can chose to use the former service directly instead of the convenience extension method. You don't lose any testability in doing either way, although you do need to pass around the adapter service in one case. ======= Example ======= // Calling code assumes there is a service always setup before invoking. // If there isn't, an InvalidOperationException is thrown automatically. // Use adapter extension method As as needed, i.e. // say we need to use it as an MSBuild project, if possible IMSBuildProject msbuild = project.As<IMSBuildProject>(); if (msbuild != null) // do MSBuild stuff with it.

GitHub repositories (2)

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

Repository Stars
moq/moq.spikes
The most popular and friendly mocking framework for .NET
ploeh/Hyprlinkr
A URI building helper library for ASP.NET Web API
Version Downloads Last updated
1.3.3.2 181,064 3/26/2013
1.3.3.1 1,438 3/25/2013
1.3.3 12,060 12/6/2012
1.3.2 15,990 8/6/2012
1.3.1 122,902 7/2/2011
1.2.0.10 19,021 6/15/2011
1.2.0.4 5,426 5/20/2011
1.2.0 76,578 2/9/2011