public static ILPostProcessor[] FindAllPostProcessors() { TypeCache.TypeCollection typesDerivedFrom = TypeCache.GetTypesDerivedFrom <ILPostProcessor>(); ILPostProcessor[] localILPostProcessors = new ILPostProcessor[typesDerivedFrom.Count]; for (int i = 0; i < typesDerivedFrom.Count; i++) { try { localILPostProcessors[i] = (ILPostProcessor)Activator.CreateInstance(typesDerivedFrom[i]); } catch (Exception exception) { Console.WriteLine($"Could not create ILPostProcessor ({typesDerivedFrom[i].FullName}):{Environment.NewLine}{exception.StackTrace}"); } } return(localILPostProcessors); }
public NamedILPostProcessorWrapper(string name, ILPostProcessor ilpostProcessor) { Name = name; ILPostProcessor = ilpostProcessor; }