.NET Validation Framework (from CodePlex)

Validation code can mess up our classes. They add several lines of codes per validation, make the code look messier, and less readable.

 

Addressing this issue, several companies built components just for the sake of that, but most of them are GUI controls, so they do not answer all needs.

 

A nice solution is the Validation Framework, which enables us to define validation rules in several different ways (attributes, configuration, code), and looks easy enough to use. Besides rules like: CompareRule, RangeRule, RegexRule, they also have CustomRule, which performs the validation based on .NET code you can write.

 

Besides rules like: CompareRule, RangeRule, RegexRule, they also have CustomRule, which performs the validation based on .NET code you can write.

Developer