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" />
paket add ArgValidation --version 0.1.0
#r "nuget: ArgValidation, 0.1.0"
// Install ArgValidation as a Cake Addin #addin nuget:?package=ArgValidation&version=0.1.0 // Install ArgValidation as a Cake Tool #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. |
.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 | 3,096 | 11/11/2020 |
1.9.0 | 8,547 | 6/12/2019 |
1.8.0 | 1,004 | 3/18/2019 |
1.7.0 | 1,036 | 1/20/2019 |
1.6.0 | 1,012 | 1/13/2019 |
1.5.0 | 900 | 1/8/2019 |
1.4.0 | 888 | 1/4/2019 |
1.3.0 | 854 | 12/23/2018 |
1.2.0 | 854 | 12/17/2018 |
1.0.1 | 863 | 11/25/2018 |
1.0.0 | 849 | 11/25/2018 |
0.3.0 | 881 | 11/11/2018 |
0.2.2 | 913 | 10/30/2018 |
0.2.1 | 886 | 10/28/2018 |
0.2.0 | 911 | 10/28/2018 |
0.1.0 | 929 | 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)