阅读背景:

是否可以将变量转换为存储在另一个变量中的类型?

来源:互联网 

This is what I need to do:

这就是我需要做的事情:

object foo = GetFoo();
Type t = typeof(BarType);
(foo as t).FunctionThatExistsInBarType();
obje



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: