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;
        }
Beispiel #2
0
        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);
        }