摘要:
1. 嵌套的泛型类型或方法的实例化:class GenericClass<T>
{ public class NestedGenericClass<T2> { ... } public void GenericMethod<T2>(T2 t) { ... }
}为了通过Reflection实例化以上的NestedGenericClass<>和GenericMethod<>,必须照顾到它们的包含类,即GenericClass<>。通常以为以下的过程会完成实例化到genNestedCls类型变量中:Type gcls ... 阅读全文
posted @ 2011-07-16 09:24
quanben
阅读(229)
评论(0)
推荐(0)

浙公网安备 33010602011771号