2011-03-28 87 views

回答

15

new()意味着T必须具有无参数的构造函数。

这是一个帮助,使您能够构建在您的泛型类/方法T类型的对象:

public T Create() 
{ 
    return new T(); 
}