PostSharp6.2/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)

ReflectionSearch.GetDerivedTypes Method (Type)

Gets the set of types derived from a given class or implementing a given interface.

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

Parameters

baseType
Type: System.Type
A class or interface.

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
This feature is available only at build time.

See Also