Argument.Check
2.0.0
dotnet add package Argument.Check --version 2.0.0
NuGet\Install-Package Argument.Check -Version 2.0.0
<PackageReference Include="Argument.Check" Version="2.0.0" />
paket add Argument.Check --version 2.0.0
#r "nuget: Argument.Check, 2.0.0"
// Install Argument.Check as a Cake Addin
#addin nuget:?package=Argument.Check&version=2.0.0
// Install Argument.Check as a Cake Tool
#tool nuget:?package=Argument.Check&version=2.0.0
A library to check your arguments in a simple comfort way. This library do not use Expression or nameof. It is based on Func<T>. So no performance issue during positive argument check.
Product | Versions |
---|---|
.NET | net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
-
net6.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Argument.Check:
Package | Downloads |
---|---|
Extensions.Pack
A set of useful extensions to make your code smooth and nice readable. |
|
AspNetCore.Simple.Sdk
This simple SDK contains following helpful optimizations: - ApiVersioning - Errorhandling with middleware - Logging with middleware - Query security filter - Optimized and simplified swagger. - Ready to go base class for startup.cs |
|
Solution.Parser
WIP - This simple SDK to parse solution, projects and c# files |
|
CSharp.Parser.Abstraction
A simple abstraction to parse C# files. Target should be a human friendly readable result. But it is just based on the syntax tree. You don't get any semantic informations. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0 | 5,971 | 7/25/2022 |
2.0.0-alpha.59 | 339 | 7/3/2022 |
2.0.0-alpha.58 | 88 | 7/3/2022 |
2.0.0-alpha.52 | 4,977 | 10/19/2021 |
1.0.4 | 33,498 | 1/19/2020 |
1.0.3 | 946 | 1/18/2020 |
1.0.2 | 964 | 1/18/2020 |
1.0.1 | 26,740 | 1/3/2020 |
1.0.0 | 393 | 1/3/2020 |
0.9.0 | 5,583 | 12/26/2019 |
Changes:
- Upgrade to Net6
- Code analysis detect argument null check as a null check. No hint for "possible null reference exception.." any more.
- No func need to check your arguments. "Throw.IfNull(myArgument)" instead of "Throw.IfNull(() => myArgument)"
- The argument check is now as fast as throw expressions, no performance loss.
- All func methods are tagged now with "obsolete" attribute.
- Activate nullable, that compiler knows which extension or arg checks already checked for NULL