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; }
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; }