ArgValidation 0.1.0
See the version list below for details.
dotnet add package ArgValidation --version 0.1.0
NuGet\Install-Package ArgValidation -Version 0.1.0
<PackageReference Include="ArgValidation" Version="0.1.0" />
<PackageVersion Include="ArgValidation" Version="0.1.0" />
<PackageReference Include="ArgValidation" />
paket add ArgValidation --version 0.1.0
#r "nuget: ArgValidation, 0.1.0"
#:package ArgValidation@0.1.0
#addin nuget:?package=ArgValidation&version=0.1.0
#tool nuget:?package=ArgValidation&version=0.1.0
A simply arguments validation library with fluent API.
Examples:
Arg.NotNull(() => model);
Arg.Validate(() => color)
.NotNullOrWhitespace()
.LengthLessOrEqualThan(20);
Arg.Positive(releaseYear, nameof(releaseYear));
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
| .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. |
This package has no dependencies.
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.10.0 | 6,998 | 11/11/2020 |
| 1.9.0 | 12,081 | 6/12/2019 |
| 1.8.0 | 1,248 | 3/18/2019 |
| 1.7.0 | 1,262 | 1/20/2019 |
| 1.6.0 | 1,261 | 1/13/2019 |
| 1.5.0 | 1,115 | 1/8/2019 |
| 1.4.0 | 1,129 | 1/4/2019 |
| 1.3.0 | 1,081 | 12/23/2018 |
| 1.2.0 | 1,099 | 12/17/2018 |
| 1.0.1 | 1,108 | 11/25/2018 |
| 1.0.0 | 1,081 | 11/25/2018 |
| 0.3.0 | 1,124 | 11/11/2018 |
| 0.2.2 | 1,170 | 10/30/2018 |
| 0.2.1 | 1,122 | 10/28/2018 |
| 0.2.0 | 1,165 | 10/28/2018 |
| 0.1.0 | 1,190 | 10/20/2018 |
Support checks for the following types:
- Object:
- Default()
- NotDefault()
- Null()
- NotNull()
- Equal(T value)
- NotEqual(T value)
- OnlyValues(params T[] values)
- IComparable<T>:
- MoreThan(T value)
- MoreOrEqualThan(T value)
- LessThan(T value)
- LessOrEqualThan(T value)
- InRange(T min, T max)
- IEnumerable<T>:
- CountEqual(int count)
- CountNotEqual(int count)
- CountMoreThan(int count)
- CountMoreOrEqualThan(int count)
- CountLessThan(int count)
- CountLessOrEqualThan(int count)
- Contains(T elem)
- NotContains(T elem)
- String
- NullOrEmpty()
- NotNullOrEmpty()
- NullOrWhitespace()
- NotNullOrWhitespace()
- LengthEqual(int value)
- LengthMoreThan(int value)
- LengthMoreOrEqualThan(int value)
- LengthLessThan(int value)
- LengthLessOrEqualThan(int value)
- LengthInRange(int min, int max)
- Contains(string value)
- NotContains(string value)