public static GetTypes ( bool>.Func |
||
predicate | bool>.Func | The predicate where the type should apply to. |
Результат | System.Type[] |
/// <summary> /// Gets a list of all types inside the <see cref="AppDomain"/>. /// </summary> /// <param name="appDomain">The app domain.</param> /// <returns>List of types found in the <see cref="AppDomain"/>.</returns> /// <remarks> /// This class must only be used by Catel. To make sure that an application performs, make sure to use /// <see cref="TypeCache.GetTypes"/> instead. /// </remarks> internal static Type[] GetTypes(this AppDomain appDomain) { Argument.IsNotNull("appDomain", appDomain); return(TypeCache.GetTypes()); //List<Assembly> assemblies = AssemblyHelper.GetLoadedAssemblies(appDomain); //var types = new List<Type>(); //foreach (var assembly in assemblies) //{ // types.AddRange(from assemblyType in AssemblyHelper.GetAllTypesSafely(assembly) // select assemblyType); //} //return types.ToArray(); }
/// <summary> /// Gets a list of all types inside the <see cref="AppDomain"/>. /// </summary> /// <param name="appDomain">The app domain.</param> /// <returns>List of types found in the <see cref="AppDomain"/>.</returns> /// <remarks> /// This class must only be used by Catel. To make sure that an application performs, make sure to use /// <see cref="TypeCache.GetTypes"/> instead. /// </remarks> internal static Type[] GetTypes(this AppDomain appDomain) { Argument.IsNotNull("appDomain", appDomain); return(TypeCache.GetTypes()); }