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.0
dotnet add package Argument --version 1.0.0
<PackageReference Include="Argument" Version="1.0.0" />
paket add Argument --version 1.0.0
Extended Argument.NotNullOrEmpty to allow IEnumerable as long as it is not a base IEnumerable.
This package has no dependencies.
Showing the top 1 GitHub repositories that depend on Argument:
SharpLab (previously known as TryRoslyn)
Read more about the GitHub Usage information on our documentation.