I'm building a custom user control. One of the properties must allow the end user to select the numeric data type such as int, short, long, double....
I'm having a problem figuring out what to use as an internal property type, so that when the user selects the DataType option in the property box it will give them a drop down list of all the numeric types.
I've tried a few variances... This one below, when compiled displays the DataType property as grayed out. It won't allow me to select or enter a value.
private System.ValueType _DataType;
public System.ValueType DataType
{
get { return _DataType; }
set
{
_DataType = value;
}
}
Any help is appreciated. Thanks!