NetEvolve.Guard
1.3.17
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NetEvolve.Guard --version 1.3.17
NuGet\Install-Package NetEvolve.Guard -Version 1.3.17
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" Version="1.3.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetEvolve.Guard --version 1.3.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NetEvolve.Guard, 1.3.17"
#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.Guard as a Cake Addin
#addin nuget:?package=NetEvolve.Guard&version=1.3.17
// Install NetEvolve.Guard as a Cake Tool
#tool nuget:?package=NetEvolve.Guard&version=1.3.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
public static bool Execute(string? directoryFolder)
{
string directory = Ensure.That(directoryFolder).IsNotNullOrWhiteSpace();
// or alternatively
string directory = Ensure.That(directoryFolder, nameof(directoryFolder)).IsNotNullOrWhiteSpace();
// Do some magic
...
}
Product | Versions 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
- NetEvolve.Arguments (>= 1.0.8)
-
net5.0
- NetEvolve.Arguments (>= 1.0.8)
-
net6.0
- NetEvolve.Arguments (>= 1.0.8)
-
net7.0
- NetEvolve.Arguments (>= 1.0.8)
-
net8.0
- NetEvolve.Arguments (>= 1.0.8)
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.4.8 | 76 | 4/8/2024 |
1.4.0 | 78 | 4/4/2024 |
1.3.115 | 79 | 2/20/2024 |
1.3.79 | 146 | 1/3/2024 |
1.3.40 | 162 | 11/17/2023 |
1.3.37 | 103 | 11/15/2023 |
1.3.17 | 129 | 10/10/2023 |
1.3.16 | 114 | 10/10/2023 |
1.3.2 | 150 | 8/30/2023 |
1.3.0 | 134 | 8/28/2023 |
1.2.12 | 139 | 8/28/2023 |
1.2.10 | 145 | 8/28/2023 |
1.2.9 | 133 | 8/28/2023 |
1.2.7 | 127 | 8/28/2023 |
1.2.4 | 130 | 8/21/2023 |
1.2.0 | 153 | 8/14/2023 |
1.1.45 | 122 | 7/5/2023 |
1.1.31 | 138 | 5/2/2023 |
1.1.29 | 160 | 5/2/2023 |