Esempio n. 1
0
        public ITypeData AddType(string name)
        {
            if (ContainsType(name))
                throw new InvalidOperationException("A type already exists with the given name.");

            TypeData data = new TypeData(name, this);
            this.typeData[name] = data;
            return data;
        }
Esempio n. 2
0
        public ITypeData AddType(string name)
        {
            if (ContainsType(name))
                throw new InvalidOperationException("The type already exists in this context.");

            ITypeData data = new TypeData(name, this);
            typesByName[name] = data;
            return data;
        }