Appearance
GetTypesImplementing Method
Definition
- Namespace:
JASE - Assembly:
JASE.ReflectionTools.dll
Overloads
| Name | Description |
|---|---|
List<Type> GetTypesImplementing(AppDomain domain) | Returns all concrete types in the specified AppDomain that implement or derive from T. |
List<Type> GetTypesImplementing(Assembly assembly) | Returns all concrete types in the specified Assembly that implement or derive from T. |
List<Type> GetTypesImplementing(AppDomain domain)
csharp
List<Type> GetTypesImplementing(AppDomain domain)Returns all concrete types in the specified AppDomain that implement or derive from T.
Type parameters
| Name | Description |
|---|---|
T | The interface or base type to match. |
Parameters
| Name | Description |
|---|---|
domain | The AppDomain to scan. |
Returns
A list of non-abstract, non-interface types assignable to T discovered across loaded assemblies.
Remarks
This method scans loaded assemblies and attempts to enumerate their types. Some assemblies may fail to load types due to missing dependencies; such assemblies are skipped, and partially loadable assemblies are handled via ReflectionTypeLoadException where possible.
Certain Visual Studio-related assemblies may be excluded to avoid known type-load failures in test runners.
List<Type> GetTypesImplementing(Assembly assembly)
csharp
List<Type> GetTypesImplementing(Assembly assembly)Returns all concrete types in the specified Assembly that implement or derive from T.
Type parameters
| Name | Description |
|---|---|
T | The interface or base type to match. |
Parameters
| Name | Description |
|---|---|
assembly | The assembly to scan. |
Returns
A list of non-abstract, non-interface types assignable to T found in the assembly.
Remarks
If the assembly cannot load all types due to missing dependencies, this method attempts to recover partially loadable types via ReflectionTypeLoadException.
Certain Visual Studio-related assemblies may be excluded to avoid known type-load failures in test runners.