PostSharp4.3/API Reference/Post­Sharp.​Reflection.​Syntax Namespace/ILocal­Variable­Expression Interface
ILocalVariableExpression 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 ILocalVariableExpression : IExpression, 
	ISyntaxElement

The ILocalVariableExpression type exposes the following members.

Properties
  NameDescription
Public propertyLocalVariable
Gets 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 propertyReturnType
Gets the type of the return value of the current expression, or Void if the expression does not return anything (i.e. for pure instructions, for instance a goto or throw instruction).
(Inherited from IExpression.)
Public propertySyntaxElementKind
Gets the kind of syntax element.
(Inherited from ISyntaxElement.)
Public propertyTrivialValue
Gets the value of the ISyntaxLocalVariable at this specific point of the program execution, in case this value can be determined trivially.
Methods
  NameDescription
Public methodGetPossibleAssignments
Returns an array of all possible assignments of the ISyntaxLocalVariable at this specific point of the program execution.
See Also