PostSharp6.3/API Reference/Post­Sharp.​Reflection Namespace/Reflection­Search Class/Reflection­Search Methods/Reflection­Search.​Get­Derived­Types Method/Reflection­Search.​Get­Derived­Types Method (Type, Reflection­Search­Options)

ReflectionSearch.GetDerivedTypes Method (Type, ReflectionSearchOptions)

Gets the set of types derived from a given class or implementing a given interface. and specifies additional options.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.3.9.0 (6.3.9.0)
Syntax
C#
public static TypeInheritanceCodeReference[] GetDerivedTypes(
	Type baseType,
	ReflectionSearchOptions options
)

Parameters

baseType
Type: System.Type
A class or interface.
options
Type: PostSharp.Reflection.ReflectionSearchOptions
Any valid combination of the options [!:ReflectionSearchOptions.UseReflectionWrappers], IncludeTypeElement (partial type match), and IncludeDerivedTypes (deep search). IncludeTypeElement and IncludeDerivedTypes cannot be used together.

Return Value

Type: TypeInheritanceCodeReference[]
The set of types derived from or implementing baseType.
Remarks

This method returns only types defined in the assembly being currently processed.

Note Note

Note Note
This feature is available only at build time.

See Also