New Numeric Comparison Attributes

Topics: Wish List Forum
Developer
Dec 14, 2006 at 1:52 AM
Add the following attributes. These should probably have the minValue parameter overloaded with different numeric types (int, double, single, etc.) too.
ValidateGreaterThanMinValue(double minValue, string message)
ValidateGreaterThanEqualToMinValue(double minValue, string message)
ValidateLessThanMinValue(double minValue, string message)
ValidateLessThanEqualToMinValue(double minValue, string message)
Coordinator
Dec 18, 2006 at 4:36 AM
Instead of creating these what I'd rather do is overload the ValidateGreaterThan, ValidateGreaterThanOrEqualTo, etc attributes to take in numeric paramters. That would satisfy what you're looking for, and would alleviate the need to create a property to hold a numeric value just for validation purposes.