I want to convert a string to a generic type
I have it:
string inputValue = myTxtBox.Text; PropertyInfo propInfo = typeof(MyClass).GetProperty(myPropertyName); Type propType = propInfo.PropertyType; object propValue = ?????
I want to convert 'inputString' to the type of this property to check if it is compatible, how can I do this?
tks
generics reflection c #
DJPB May 27 '10 at 16:18 2010-05-27 16:18
source share