public static IEnumerable<Type> TryGetTypes(this Assembly assm) { try { return assm.GetTypes(); } catch (ReflectionTypeLoadException e) { return e.Types.Where(t => t != null); } }