CuttingEdge.Conditions is a library that helps developers to write pre- and postcondition validations in their .NET 3.5 code base. Writing these validations is easy and it improves the readability and maintainability of code.
This third beta release has some breaking changes to allow better support for languages other than C# (VB.NET
for instance, wasn't supported well).Bug fixes and changes
- Added an Obsolete attribute to the Equals(object) method of the Validator<T> class. The Equals method is not meant to be used by framework users and the compiler will now show a warning with the message ''This method is not part of the validation framework. Please use the IsEqualTo method.' which indicates clearly that the user should use the IsEqualTo method. The Equals(object) method was already hidden by the C# IDE, but the VB.NET IDE still shows this method in the IntelliSense dropdown.
- Entry point methods 'Requires' and 'Ensures' moved to a more meaningful class, named 'Condition'. This leads to a more intuitive API for languages that do not support extension methods on all type of objects such as VB.NET, which does not support extension methods on arguments of the System.Object. (This is a breaking change)
For any feedback regarding the project in general and this release in particular, please contact the author at his blog:
This release is provided without any warranty. Please note that this is a beta release and that future releases may be incompatible to this release, like this release is incompatible with the previous release.