PostSharp4.3/API Reference/Post­Sharp.​Reflection.​Syntax Namespace/ISyntax­Local­Variable Interface
ISyntaxLocalVariable Interface
Expression that represents a local variable.

Namespace: PostSharp.Reflection.Syntax
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public interface ISyntaxLocalVariable : ISyntaxElement

The ISyntaxLocalVariable type exposes the following members.

Properties
  NameDescription
Public propertyName
Gets the name of the local variable.
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from ISyntaxElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from ISyntaxElement.)
Public propertySlot
Gets the ordinal of the local variable.
Public propertySyntaxElementKind
Gets the kind of syntax element.
(Inherited from ISyntaxElement.)
Public propertyVariableType
Gets the type of the local variable.
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.

See Also