Ejemplo n.º 1
0
        public MockClassificationTypeRegistryService()
        {
            foreach (FieldInfo fi in typeof(PredefinedClassificationTypeNames).GetFields())
            {
                string name = (string)fi.GetValue(null);
                _types[name] = new MockClassificationType(name, new IClassificationType[0]);
            }

            foreach (FieldInfo fi in typeof(PythonPredefinedClassificationTypeNames).GetFields())
            {
                string name = (string)fi.GetValue(null);
                _types[name] = new MockClassificationType(name, new IClassificationType[0]);
            }
        }
Ejemplo n.º 2
0
 public IClassificationType CreateClassificationType(string type, IEnumerable <IClassificationType> baseTypes)
 {
     return(_types[type] = new MockClassificationType(type, baseTypes.ToArray()));
 }