Skip to content

GetTypesImplementing Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

Overloads ​

NameDescription
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 ​

NameDescription
TThe interface or base type to match.

Parameters ​

NameDescription
domainThe 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 ​

NameDescription
TThe interface or base type to match.

Parameters ​

NameDescription
assemblyThe 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.