Beispiel #1
0
 private static IEnumerable <Type> GetTypes(Assembly a)
 {
     try
     {
         return(TypeFinder.GetTypesWithFormattedException(a));
     }
     catch (ReflectionTypeLoadException ex)
     {
         // is this going to flood the log?
         LogHelper.Error(typeof(ExtensionMethodFinder), "Failed to get types.", ex);
         return(Enumerable.Empty <Type>());
     }
 }