NetEvolve.Guard.Experimental
1.0.42
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
<PackageReference Include="NetEvolve.Guard.Experimental" Version="1.0.42" />
paket add NetEvolve.Guard.Experimental --version 1.0.42
#r "nuget: NetEvolve.Guard.Experimental, 1.0.42"
// 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
This project is available on NuGet
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 |
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- System.Runtime.Experimental (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.