Appearance
GetTypes Method
Definition
- Namespace:
JASE - Assembly:
JASE.ReflectionTools.dll
Overloads
| Name | Description |
|---|---|
List<Type> GetTypes(AppDomain domain, Func<Type, bool> filter) | Returns all types in the specified AppDomain that match the given predicate. |
List<Type> GetTypes(Assembly assembly, Func<Type, bool> filter) | Returns a list of Types filtered by the predicate |
List<Type> GetTypes(AppDomain domain, Func<Type, bool> filter)
csharp
List<Type> GetTypes(AppDomain domain, Func<Type, bool> filter)Returns all types in the specified AppDomain that match the given predicate.
Parameters
| Name | Description |
|---|---|
domain | The AppDomain to scan. |
filter | Predicate used to select types. |
Returns
A list of matching types discovered across loaded assemblies in the domain.
Remarks
This method scans GetAssemblies and evaluates types via DefinedTypes.
In unit test environments, certain Visual Studio-related assemblies may be excluded to avoid known type-load failures.
List<Type> GetTypes(Assembly assembly, Func<Type, bool> filter)
csharp
List<Type> GetTypes(Assembly assembly, Func<Type, bool> filter)Returns a list of Types filtered by the predicate