Overloading Attributes

Topics: Wish List Forum
Developer
Dec 14, 2006 at 2:49 AM
There could be an advantage in overloading attributes on ValidateMinValue and ValidateMaxValue, each having a different type for the first parameter (double, single, int, etc.) so that you can do specific type comparisons.
Coordinator
Dec 18, 2006 at 5:42 AM
I can see doing this, but the tests I wrote for both of these attributes use a combination of integers and doubles and work just fine. The internal implementation of these attributes converts the given value into a double anyway, so it should take care of any number you give it. Let me know if this is not the case.