I have to cast an object to an object, where i just have the typename as a string.
For example:
I have the type-string System.DateTime and the string 2012-09-17T10:19:23.5369243+02:00. Now I want to have an object of DateTime with the value of the string.
Is this possible?
The answer to your question can be found in all the other answers, waiting to be pieced together. 🙂
Get the Type from your Type String, like akhisp said:
Now, use a type converter to change the string to the DateTime: