我怎样才能调用这个构造函数?
public class DataField
{
public String Name;
public Type TheType;
public DataField(string name, Type T)
{
Name = name;
TheType = T;
}
}
我想到了
f = new DataField("Name",typeof(new String()));
但我想避免创建对象。那么这个可以吗?
f = new DataField("Name",String);