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 kinds of local variables, but consumers of this interface should not rely on the kind. The kinds are 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.