PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Block Class / Instruction­Block Methods / Instruction­Block.​Get­Local­Variable­Symbol Method

InstructionBlock.GetLocalVariableSymbol Method

Gets a LocalVariableSymbol given its position in the current block.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public LocalVariableSymbol GetLocalVariableSymbol(
	int index
)

Parameters

index
Type: System.Int32
Index of the required symbol in the collection of symbols of the current block. This is not the ordinal of the local variable to which it refers.

Return Value

Type: LocalVariableSymbol
The LocalVariableSymbol at position index.
See Also