How can I call this constructor ?
public class DataField
{
public String Name;
public Type TheType;
public DataField(string name, Type T)
{
Name = name;
TheType = T;
}
}
I thought of
f = new DataField("Name",typeof(new String()));
but I want to avoid object creation.
So is this one ok ?
f = new DataField("Name",String);
You can use a type name with
typeof: