How can I get System.Type from "System.Drawing.Color" string
- by jonny
I have an xml stored property of some control
<Prop Name="ForeColor" Type="System.Drawing.Color" Value="-16777216" />
I want to convert it back as others
System.Type type = System.Type.GetType(propertyTypeString);
object propertyObj =
TypeDescriptor.GetConverter(type).ConvertFromString(propertyValueString);
…