Argument validation clauses.
if you like this work, please consider give the project star 🌟
Using the .NET CLI tools:
dotnet add package Xdot.Arguments
Argument.IsInEnum();
Argument.IsNegative();
Argument.IsNegativeOrZero();
Argument.IsPositive();
Argument.IsPositiveOrZero();
Argument.IsOneOf();
Argument.IsEqualTo();
Argument.IsLessThan();
Argument.IsLessThanOrEqualTo();
Argument.IsGreaterThan();
Argument.IsGreaterThanOrEqualTo();
Argument.IsInclusiveBetween();
Argument.IsExclusiveBetween();
Argument.IsLeftOpenedBetween();
Argument.IsRightOpenedBetween();
Argument.HaveItemsInRange();
Argument.IsNotDefault();
Argument.IsNotEmpty();
Argument.IsNotNull();
Argument.IsNotNullOrDefault();
Argument.IsNotNullOrEmpty();
Argument.IsNotNullOrWhiteSpace();
Argument.HasNoNulls();
Argument.HasNoNullOrEmptyElements();
Argument.HasNoNullOrWhiteSpaceElements();
Argument.Matches();
This project is licensed under the Apache 2.0 license.
If you have any suggestions, comments or questions, please feel free to contact me on:
Email: [email protected]