PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / ILocal­Variable­Expression Interface / ILocal­Variable­Expression Methods / ILocal­Variable­Expression.​Get­Possible­Assignments Method

ILocalVariableExpression.GetPossibleAssignments Method

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

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
IList<IExpression> GetPossibleAssignments()

Return Value

Type: 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.

See Also