Argument 1.0.1

Argument validation methods, for example:
this.user = Argument.NotNull("user", user).

Less fancy than approaches based on lambdas/anonymous classes, but less scary performance-wise (given that argument checks are often all over the place).

Includes Code Contracts [ContractArgumentValidator] annotation (.NET 4.5 only) and ReSharper annotations.

There is a newer version of this package available.
See the version list below for details.
Install-Package Argument -Version 1.0.1
dotnet add package Argument --version 1.0.1
<PackageReference Include="Argument" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Argument --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Argument, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Argument as a Cake Addin
#addin nuget:?package=Argument&version=1.0.1

// Install Argument as a Cake Tool
#tool nuget:?package=Argument&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Extended Argument.NotNull to allow nullable types.


This package has no dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Argument:

Package Downloads
Migration framework for Umbraco (Core).
.NET sandboxing framework: rewrites other assemblies to ensure they can't bring down the hosting process.
.Net library which allows connecting to UnityBase server.
PRE-RELEASE, do not use (but now supports SignalR).

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Argument:

Repository Stars
.NET language playground

Version History

Version Downloads Last updated
1.4.0 2,256 2/24/2021
1.3.1 9,498 2/29/2020
1.2.0 410 2/15/2020
1.1.1 6,452 8/8/2019
1.1.0 11,809 4/1/2018
1.0.4-dnx-1 1,146 10/31/2015
1.0.3 5,679 8/26/2014
1.0.2 11,244 6/1/2014
1.0.1 952 6/1/2014
1.0.0 1,144 3/27/2014
0.9.6 1,249 4/21/2013
0.9.5 1,020 4/21/2013
Show less