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