Пример #1
0
 private static void CreateAndAddCheckers()
 {
     if (ArrayExtensions.ContainsElements(Checkers))
     {
         return;
     }
     Checkers.AddRange(Resolver.ActivateAll <IEncodingChecker>());
     //Checkers.AddRange(from c in Resolver.ResolveAllOf<IEncodingChecker>() select c.Activate<IEncodingChecker>());
 }
Пример #2
0
 private static IEnumerable <ITableParser> SearchForParser(string fileName)
 {
     return(from parser in Resolver.ActivateAll <ITableParser>()
            where parser.IsSuitableForFile(fileName)
            select parser);
 }