I want to convert a string to a generic type
I have this:
string inputValue = myTxtBox.Text; PropertyInfo propInfo = typeof(MyClass).GetProperty
Try Convert.ChangeType
object propvalue = Convert.ChangeType(inputValue, propType);