Open sandboxFocus

Interface ILocalVariable

Expression that represents a local variable.

Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp.dll
Syntax
public interface ILocalVariable : IMethodBodyElement
Remarks

There are three kind of local variable, but consumers of this class should be oblivious to these kinds: local variables defined in user code, local variables introduced by the compiler, and pseudo-variables introduced by the AST decompiler to emulate the stack.

Properties

Name Description
Name

Gets the name of the local variable.

Slot

Gets the ordinal of the local variable.

VariableType

Gets the type of the local variable.