J
Jinsong Liu
I have a function, which accept two parameters, one is a object,
another is a Type. I need to cast the object to the type define by
Type. is it possible?
void MyFunction(Object O, Type T)
{
// this is what I want to do
T MyObject=(T)O;
}
another is a Type. I need to cast the object to the type define by
Type. is it possible?
void MyFunction(Object O, Type T)
{
// this is what I want to do
T MyObject=(T)O;
}