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);