public IClassificationType CreateClassificationType(string type, IEnumerable<IClassificationType> baseTypes) { if (this.registry.ContainsKey(type)) { throw new InvalidOperationException(); } IClassificationType classificationType = new FakeClassificationType(type, baseTypes); this.registry.Add(type, classificationType); return classificationType; }
public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes) { if (this.registry.ContainsKey(type)) { throw new InvalidOperationException(); } IClassificationType classificationType = new FakeClassificationType(type, baseTypes); this.registry.Add(type, classificationType); return(classificationType); }