Argument.Check 2.0.0-alpha.52

This is a prerelease version of Argument.Check.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Argument.Check --version 2.0.0-alpha.52
                    
NuGet\Install-Package Argument.Check -Version 2.0.0-alpha.52
                    
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="Argument.Check" Version="2.0.0-alpha.52" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Argument.Check" Version="2.0.0-alpha.52" />
                    
Directory.Packages.props
<PackageReference Include="Argument.Check" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Argument.Check --version 2.0.0-alpha.52
                    
#r "nuget: Argument.Check, 2.0.0-alpha.52"
                    
#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.
#:package Argument.Check@2.0.0-alpha.52
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Argument.Check&version=2.0.0-alpha.52&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Argument.Check&version=2.0.0-alpha.52&prerelease
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Argument.Check:

Package Downloads
Extensions.Pack

A set of useful extensions to make your code smooth and nice readable.

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 (1)

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

Repository Stars
shadowsocks/Shadowsocks-Net
✈ A light-weight, cross-platform, extensible Shadowsocks developed in C# (.NET Core).
Version Downloads Last Updated
5.0.4 9,337 3/17/2025
5.0.3 1,813 2/19/2025
5.0.2 12,115 1/24/2025
5.0.1 97 1/24/2025
5.0.0 1,434 11/20/2024
4.0.2 90,680 11/20/2024
4.0.1 930 9/6/2024
4.0.0 91,660 11/28/2023
3.0.1 77,117 5/29/2023
3.0.0 16,497 5/29/2023
2.0.0 36,873 7/25/2022
2.0.0-alpha.59 451 7/3/2022
2.0.0-alpha.58 195 7/3/2022
2.0.0-alpha.52 7,698 10/19/2021
1.0.4 363,099 1/19/2020
1.0.3 1,736 1/18/2020
1.0.2 1,749 1/18/2020
1.0.1 27,580 1/3/2020
1.0.0 1,186 1/3/2020
0.9.0 6,386 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.