PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / IType­Hierarchy­Service Interface / IType­Hierarchy­Service Methods / IType­Hierarchy­Service.​Get­Derived­Types­Enumerator Method

ITypeHierarchyService.GetDerivedTypesEnumerator Method

Gets an enumerator of all TypeDefDeclaration derived from a given type.

Namespace:  PostSharp.Sdk.Extensibility.Tasks
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
IEnumerator<TypeDefDeclaration> GetDerivedTypesEnumerator(
	TypeDefDeclaration baseType,
	bool deep,
	ModuleDeclaration module
)

Parameters

baseType
Type: PostSharp.Sdk.CodeModel.TypeDefDeclaration
The base type (a class or interface).
deep
Type: System.Boolean
true if children should be retrieved recursively, false if only direct children should be returned.
module
Type: PostSharp.Sdk.CodeModel.ModuleDeclaration
Module from which children should be returned, or null if all indexed types should be returned regardless of its module.

Return Value

Type: IEnumerator<TypeDefDeclaration>
The set of types derived from baseType.
See Also