public VarBase(AstElementaryTypeName type) { // Set our type Type = type; // Obtain the components of our type and set them. BaseType = VarParser.ParseTypeComponents(type.TypeDescriptions.TypeString).baseType; // Obtain our generic type. GenericType = VarParser.GetGenericType(BaseType); }
public VarBase(string typeString) { // Set our type TypeString = typeString; // Obtain the components of our type and set them. BaseType = VarParser.ParseTypeComponents(TypeString).baseType; // Obtain our generic type. GenericType = VarParser.GetGenericType(BaseType); }