StoryTeller.Project.FindSystemTypes C# (CSharp) Method

FindSystemTypes() public static method

public static FindSystemTypes ( Assembly assembly ) : IEnumerable
assembly Assembly
return IEnumerable
        public static IEnumerable<Type> FindSystemTypes(Assembly assembly)
        {
            try
            {
                return assembly.GetExportedTypes().Where(IsSystemTypeCandidate);
            }
            catch (Exception e)
            {
                Console.WriteLine("Unable to scan types in assembly " + assembly.GetName().FullName);
                Console.WriteLine(e);

                return new Type[0];
            }
        }
    }