Dynamic Casting
I want to cast dynamically.
like ...
object lo=(MyObj.GetType())result;
rsult is a parameter getting into function. I don't know it's type at runtime. But I have another object MyObj which is of the same type of result. I want to convert result to the same type as MyObj.
Waiting for your comments.
|