New Numeric Comparison Attributes

Topics: Wish List Forum
Dec 14, 2006 at 2: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)
Dec 18, 2006 at 5: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.