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); } }
public ProcessorDispatcher() { TypeProcessors.Add(new ReplaceCE()); MethodProcessors.Add(new ReplaceVirtualMethods()); }