Skip to content

GetTypes Method ​

Definition ​

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

Overloads ​

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

NameDescription
domainThe AppDomain to scan.
filterPredicate 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