Gary Wheeler wrote:Do the .NET libraries contain 'pre-built' ValidationRule classes for the base types? I'm thinking of simple things like length checks on strings, range checks for numeric values, and that sort of thing. I've not been able to find anything. My experience in learning .NET so far has been that, if I can't find something simple that feels like it ought to be built-in, I'm not approaching the problem correctly.
var