ILocalVariable Interface |
Expression that represents a local variable.
Namespace: PostSharp.Reflection.MethodBody
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface ILocalVariable : IMethodBodyElement
The ILocalVariable type exposes the following members.
Name | Description | |
---|---|---|
MethodBodyElementKind |
Gets the kind of syntax element.
(Inherited from IMethodBodyElement.) | |
Name |
Gets the name of the local variable.
| |
ParentElement |
Gets the parent element in the tree.
(Inherited from IMethodBodyElement.) | |
ParentMethodBody |
Gets the parent method body.
(Inherited from IMethodBodyElement.) | |
Slot |
Gets the ordinal of the local variable.
| |
VariableType |
Gets the type of the local variable.
|
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.