I want to convert a string to a generic type
I have this:
string inputValue = myTxtBox.Text; PropertyInfo propInfo = typeof(MyClass).GetProperty
using System.ComponentModel; TypeConverter typeConverter = TypeDescriptor.GetConverter(propType); object propValue = typeConverter.ConvertFromString(inputValue);