Skip to content

Releases: veskokolev/Bytes2you.Validation

v2.0

16 Apr 22:22
Compare
Choose a tag to compare
  • 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

13 Apr 13:58
Compare
Choose a tag to compare
  • 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

26 Nov 20:39
Compare
Choose a tag to compare
  • 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

11 Nov 17:08
Compare
Choose a tag to compare

.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

15 Oct 15:14
Compare
Choose a tag to compare

Initial version of the validation library. You can find it @ https://www.nuget.org/packages/Bytes2you.Validation/