BrickPile.Core.Extensions.AssemblyExtensions.TryGetTypes C# (CSharp) 메소드

TryGetTypes() 공개 정적인 메소드

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