PostSharpAPI ReferencePost­Sharp.​Reflection.​Method­BodyILocal­Variable­ExpressionGet­Possible­Assignments
Open sandboxFocus

ILocalVariableExpression.GetPossibleAssignments Method

GetPossibleAssignments()

Returns an array of all possible assignments of the ILocalVariable at this specific point of the program execution.

Declaration
IList<IExpression> GetPossibleAssignments()
Returns
Type Description
IList<IExpression>

List of possible assignments.

Remarks

The result list contains either assignment expressions (IBinaryExpression) or IAddressOfExpression when the address of the variable is passed to a method through a reference argument.

Result of this method is cached.