예제 #1
0
 static TypeProcessorAttribute()
 {
     foreach (var item in typeof(BaseTypeProcessors).GetNestedTypes(BindingFlags.Public | BindingFlags.NonPublic))
     {
         var attribute = (TypeProcessorAttribute)Attribute.GetCustomAttribute(item, typeof(TypeProcessorAttribute));
         var processor = RootObject.GetReaderSingleton(item);
         TypeProcessors.Add(attribute.Type, processor);
     }
 }
예제 #2
0
 public ProcessorDispatcher()
 {
     TypeProcessors.Add(new ReplaceCE());
     MethodProcessors.Add(new ReplaceVirtualMethods());
 }