示例#1
0
文件: VarBase.cs 项目: ikvm/Meadow
        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);
        }
示例#2
0
        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);
        }