Releases: veskokolev/Bytes2you.Validation
Releases · veskokolev/Bytes2you.Validation
v2.0
- Introduced throwing different exceptions for the different validations. Now we throw ArgumentException, ArgumentNullException and ArgumentOutOfRangeException according to the best practices.
- Introduced IsEmpty(), IsNotEmpty(), IsNullOrWhiteSpace(), IsNotNullOrWhiteSpace() validations for strings.
v1.3.0
- Extensibility improvements through exposing some existing APIs. Thanks for the request of @alfidanov for the feature request!
- Introduced IsEqual IsNotEqual for string with comparison types.
v1.2.0.1
- Converted from ClassLibrary to PortableLibrary. Now it supports .NET Framework 4 and higher; Silverlight 4 and higher; Windows Phone 7 and higher; .NET for Windows Store apps; Xbox 360.
- Refactored the validation messages. Now every value is surrounded by <> for better readability.
- Introduced IsInstanceOfType() & IsNotInstanceOfType methods.
- Introduced IsNull() & IsNotNull() for Nullable types.
- IntelliSense improvements. The members of IArgument and IValidatableArgument are now hidden from the editor.
- Added special float predicates - Infinity, NegativeInfinity, PositiveInfinity, NaN.
- Added special double predicates - Infinity, NegativeInfinity, PositiveInfinity, NaN.
- Better support for byte and short (no need to cast).
v1.1 of the library
.NET 4.0 compatability
Fixed a bug with IEnumerable rules.
Moved from IValidationRules to IValidationPredicate - there was ambiguity when rule is valid, but the argument is invalid
Throw method is now split in two parts - exception creation and throwing. Now a custom context specific Throw methods could be developed. For Example ThrowConfigurationExcaption().
v1.0 of the library
Initial version of the validation library. You can find it @ https://www.nuget.org/packages/Bytes2you.Validation/