S
Sean Sampey
I have two strings, strType and strValue. I am looking for a single,
generic function to create an object of type strType with a value of
strValue. I think I'm looking to use TypeConverter.ConvertFromString.
Perhaps I'm wrong. Using ConvertFromString (or any other function that'd
work), how do I acomplish this? Examples:
strType strValue
Integer 12
Boolean True
System.Drawing.Color #B5C7DE
System.Web.UI.WebControls.Orientation Vertical
Thanks!
Sean
generic function to create an object of type strType with a value of
strValue. I think I'm looking to use TypeConverter.ConvertFromString.
Perhaps I'm wrong. Using ConvertFromString (or any other function that'd
work), how do I acomplish this? Examples:
strType strValue
Integer 12
Boolean True
System.Drawing.Color #B5C7DE
System.Web.UI.WebControls.Orientation Vertical
Thanks!
Sean