StretchyTanks.CompatibilityChecker.getAllTypes C# (CSharp) Method

getAllTypes() private static method

private static getAllTypes ( ) : IEnumerable
return IEnumerable
        private static IEnumerable<Type> getAllTypes()
        {
            foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
            {
                Type[] types;
                try
                {
                    types = assembly.GetTypes();
                }
                catch (Exception)
                {
                    types = Type.EmptyTypes;
                }

                foreach (var type in types)
                {
                    yield return type;
                }
            }
        }