G
Gabe Moothart
I would like to create slightly modified 'custom' data types. For
instance, a 'Degree' type, which behaves exactly like a double, except
that it has an extra property 'ToRadians'. Or, a 'phone' data type which
behaves exactly like a string, except that it has an extra property,
'FormatPhone', which ensures that the format is correct.
Is there a way to inherit from data types, so that I can simply add my
own custom properties?
TIA,
Gabe
instance, a 'Degree' type, which behaves exactly like a double, except
that it has an extra property 'ToRadians'. Or, a 'phone' data type which
behaves exactly like a string, except that it has an extra property,
'FormatPhone', which ensures that the format is correct.
Is there a way to inherit from data types, so that I can simply add my
own custom properties?
TIA,
Gabe