Beispiel #1
0
        /// <summary>
        /// Initializes the Singleton instance
        /// </summary>
        private void Initialize()
        {
            var allTypes = TypeReflector.GetAllLoadedTypes(); // load types

            foreach (var type in allTypes)
            {
                this[type.FullName] = type;
            }
        }
Beispiel #2
0
// ReSharper restore UnassignedField.Global
#endif
        /// <summary>
        /// Gets all loaded types from all assemblies
        /// </summary>
        /// <returns></returns>
        public static List <Type> GetAllLoadedTypes()
        {
            return(TypeReflector.GetAllLoadedTypes());
        }