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