コード例 #1
0
 protected void Initialize(string name, AstElementaryTypeName astTypeName)
 {
     // Set our properties
     Name        = name;
     AstTypeName = astTypeName;
     BaseType    = VarParser.ParseTypeComponents(AstTypeName.TypeDescriptions.TypeString).baseType;
     GenericType = VarParser.GetGenericType(BaseType);
     ValueParser = VarParser.GetVariableObject(AstTypeName, VariableLocation);
 }
コード例 #2
0
        protected void Initialize(string name, string typeString)
        {
            // Set our name and type string.
            Name       = name;
            TypeString = typeString;

            // Parse the types from our type description.
            BaseType    = VarParser.ParseTypeComponents(typeString).baseType;
            GenericType = VarParser.GetGenericType(BaseType);

            // Obtain our value parser
            ValueParser = VarParser.GetValueParser(typeString, VariableLocation);
        }