Hi all.....
I want to be able to cast using CType (or similar) to a value based upon the type returned from an instance of PropertyInfo. The name of the property is held in an array.
So in my head, this runs like...
Dim _PI As PropertyInfo = _Object.GetType().GetProperty(_RegexArray(2, j))
?CType(1, _pi.getType)()
but I can't do the _PI.GetType as this should be a type, not a method returning a type. Can anyone help?
Craig
I want to be able to cast using CType (or similar) to a value based upon the type returned from an instance of PropertyInfo. The name of the property is held in an array.
So in my head, this runs like...
Dim _PI As PropertyInfo = _Object.GetType().GetProperty(_RegexArray(2, j))
?CType(1, _pi.getType)()
but I can't do the _PI.GetType as this should be a type, not a method returning a type. Can anyone help?
Craig