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­With­Info Method

IIndexMethodUsageService.GetUsedByWithInfo Method

Gets the set of methods using a given declaration in their method bodies and returns information about which instructions this declaration is used with.

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<MethodUsageInfo> GetUsedByWithInfo(
	MetadataDeclaration declaration
)

Parameters

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

Return Value

Type: ICollection<MethodUsageInfo>
The set of methods using declaration, including, for each method, an IndexUsagesInstructions value indicating in which instructions declaration is used.
See Also