阅读背景:

在运行时获得泛型类。

来源:互联网 

How can I achieve this?

我怎样才能做到这一点呢?

public class GenericClass<T>
{
    public Type getMyType()
    {
        //How do I return the type of T?
    }
}
public



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

分享到: