【发布时间】:2013-11-12 19:12:17
【问题描述】:
如何使用 Type 对象作为 Type 参数?
例如:
byte[] Data;
Type objectType;
public T MyFunction<T>()
{
return OtherClass.Deserialize <objectType> (Data);
}
也就是说,如何在Type参数<typehere>中使用Type对象?
【问题讨论】:
-
尝试
而不是 -
我将类型存储在变量@FacioRatio