PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility.​Tasks Namespace / IIndex­Method­Usage­Service Interface / IIndex­Method­Usage­Service Methods / IIndex­Method­Usage­Service.​Get­Used­By Method

IIndexMethodUsageService.GetUsedBy Method

Gets the set of methods using a given declaration in their method bodies.

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#
ICollection<MethodDefDeclaration> GetUsedBy(
	MetadataDeclaration declaration
)

Parameters

declaration
Type: PostSharp.Sdk.CodeModel.MetadataDeclaration
A declarations.

Return Value

Type: ICollection<MethodDefDeclaration>
The set of methods using declaration.
See Also