PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / ILocal­Variable­Expression Interface / ILocal­Variable­Expression Properties

ILocalVariableExpression Properties

The ILocalVariableExpression type exposes the following members.

Public propertyLocalVariable
Gets the local variable.
Public propertyMethodBodyElementKind
Gets the kind of syntax element.
(Inherited from IMethodBodyElement.)
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from IMethodBodyElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from IMethodBodyElement.)
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 propertyTrivialValue
Gets the value of the ILocalVariable at this specific point of the program execution, in case this value can be determined trivially.
See Also