NetEvolve.Guard.Experimental 1.0.42

.NET 5.0 .NET Standard 2.0
Suggested Alternatives

NetEvolve.Guard

Additional Details

Due to significant changes to the Generic Math implementations within the .NET 7 release, this package will no longer be developed.

dotnet add package NetEvolve.Guard.Experimental --version 1.0.42
NuGet\Install-Package NetEvolve.Guard.Experimental -Version 1.0.42
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.Guard.Experimental" Version="1.0.42" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEvolve.Guard.Experimental --version 1.0.42
#r "nuget: NetEvolve.Guard.Experimental, 1.0.42"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetEvolve.Guard.Experimental as a Cake Addin
#addin nuget:?package=NetEvolve.Guard.Experimental&version=1.0.42

// Install NetEvolve.Guard.Experimental as a Cake Tool
#tool nuget:?package=NetEvolve.Guard.Experimental&version=1.0.42

NetEvolve.Guard

Basic input validation via the Requires class throws an ArgumentException, ArgumentNullException or other Exception types. The last parameter parameterName is optional and is automatically populated by .NET, based on the CallerArgumentExpressionAttribute functionality.

Requires.NotNull(arg1); // Or Requires.NotNull(arg1, nameof(arg1));
Requires.InBetween(arg1, 1, 5); // Or Requires.InBetween(arg1, 1, 5, nameof(arg1));

Experimental Package

This package NetEvolve.Guard.Experimental is based on the new .NET 6 Preview features, such as IComparisonOperators or IFloatingPoint. This replaces the single implementations for numeric type methods, this significantly reduced the packet size without loss of functionality.

Pipeline & Coverage Status

Build and Release codecov

This project is available on NuGet

NuGet package NuGet package

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

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.42 259 12/20/2021
1.0.41 244 12/15/2021
1.0.40 240 12/15/2021
1.0.38 237 12/7/2021
1.0.34 267 11/15/2021
1.0.32 257 11/15/2021
1.0.31 263 11/11/2021
1.0.29 256 11/9/2021
1.0.20 261 11/8/2021
1.0.16 146 11/5/2021
1.0.3 155 11/1/2021