NetEvolve.Arguments 1.2.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetEvolve.Arguments --version 1.2.11                
NuGet\Install-Package NetEvolve.Arguments -Version 1.2.11                
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="NetEvolve.Arguments" Version="1.2.11" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEvolve.Arguments --version 1.2.11                
#r "nuget: NetEvolve.Arguments, 1.2.11"                
#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.
// Install NetEvolve.Arguments as a Cake Addin
#addin nuget:?package=NetEvolve.Arguments&version=1.2.11

// Install NetEvolve.Arguments as a Cake Tool
#tool nuget:?package=NetEvolve.Arguments&version=1.2.11                

NetEvolve.Arguments

Provides a set of backward compatible argument throw helper methods added in the latest .NET versions. Especially intended for projects with multiple TargetFrameworks, for usage, standardization and maintainability.

Method Overview

The following methods are currently provided.

Argument.ThrowIfEqual<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is equal to the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfEqual<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfGreaterThan<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is greater than the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfGreaterThan<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfGreaterThanOrEqual<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is greater than or equal to the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfLessThan<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is less than the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfLessThan<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfLessThanOrEqual<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is less than or equal to the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfLessThanOrEqual<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfNotEqual<T>(T, T, string?)

Throws an ArgumentOutOfRangeException if the first argument is not equal to the second argument. Inplace replacement for ArgumentOutOfRangeException.ThrowIfNotEqual<T>(T, T, string), which was introduced with .NET 8.

Argument.ThrowIfNull(object?, string?)

Throws an ArgumentNullException if the argument is null. Inplace replacement for ArgumentNullException.ThrowIfNull(object, string), which was introduced with .NET 6.

Argument.ThrowIfNull(void*, string?)

Throws an ArgumentNullException if the argument is null. Inplace replacement for [ArgumentNullException.ThrowIfNull(void*, string)](https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception.throwifnull?view=net-8.0#system-argumentnullexception-throwifnull(system-void*-system-string), which was introduced with .NET 7.

Argument.ThrowIfNullOrEmpty(string?, string?)

Throws an ArgumentNullException if the argument is null or throws an ArgumentException if the argument is empty. Inplace replacement for ArgumentException.ThrowIfNullOrEmpty(string, string), which was introduced with .NET 7.

Argument.ThrowIfNullOrWhiteSpace(string?, string?)

Throws an ArgumentNullException if the argument is null or throws an ArgumentException if the argument is empty or contains only white-space characters. Inplace replacement for ArgumentException.ThrowIfNullOrWhiteSpace(string, string), which was introduced with .NET 8.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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 is compatible.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (25)

Showing the top 5 NuGet packages that depend on NetEvolve.Arguments:

Package Downloads
NetEvolve.Extensions.Tasks

This library provides simple extension methods for `Task`, `Task<T>`, `ValueTask` and `ValueTask<T>`.

NetEvolve.Guard

Basic input validation via the `Ensure`-class throws an `ArgumentException`, `ArgumentNullException` or other Exception types, if the conditions are not met. The second parameter `parameterName` from `Ensure.That(T value, string? parameterName = default!)` is optional and is automatically populated by .NET, based on the `CallerArgumentExpressionAttribute` functionality.

NetEvolve.HealthChecks.Abstractions

Contains abstract implementations for the `NetEvolve.HealthChecks`.

NetEvolve.HealthChecks.SqlServer

Contains HealthChecks for Microsoft SqlServer, based on the nuget package `Microsoft.Data.SqlClient`.

NetEvolve.HealthChecks

Contains general application HealthChecks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.100 5,668 9/11/2024
1.2.90 1,050 8/26/2024
1.2.50 5,037 6/23/2024
1.2.46 322 6/18/2024
1.2.12 4,941 5/21/2024
1.2.11 112 5/21/2024
1.2.0 207 4/26/2024
1.1.9 1,425 4/8/2024
1.1.3 1,380 4/5/2024
1.1.0 171 4/4/2024
1.0.123 2,752 2/17/2024
1.0.88 3,520 1/3/2024
1.0.65 4,438 11/17/2023
1.0.58 857 11/15/2023
1.0.8 3,427 8/29/2023
1.0.6 323 8/29/2023
1.0.5 433 8/28/2023