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.
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" />
paket add Argument --version 1.0.1
Extended Argument.NotNull to allow nullable types.
This package has no dependencies.
Showing the top 1 GitHub repositories that depend on Argument:
SharpLab (previously known as TryRoslyn)