BrickPile.Core.Extensions.AssemblyExtensions.TryGetTypes C# (CSharp) Méthode

TryGetTypes() public static méthode

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);
            }
        }
AssemblyExtensions