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­Uses Method

IIndexMethodUsageService.GetUses Method

Gets the set of declarations used by a given method.

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<MetadataDeclaration> GetUses(
	MethodDefDeclaration method
)

Parameters

method
Type: PostSharp.Sdk.CodeModel.MethodDefDeclaration
A method.

Return Value

Type: ICollection<MetadataDeclaration>
The set of declarations used by the body of method.
See Also