Example #1
0
 public static IEnumerable <IFormatModule> GetModulesFromTypes(IEnumerable <Type> types)
 {
     return(types.SelectMany(x => FormatModuleRegistry.EnumerateModulesWithType(x)));
 }
Example #2
0
 public static string GetFilter(Type type)
 {
     return(string.Join("|", FormatModuleRegistry.EnumerateModulesWithType(type).Select(x => GetFilter(x))));
 }