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

ILocalVariableExpression.TrivialValue Property

Gets the value of the ILocalVariable at this specific point of the program execution, in case this value can be determined trivially.

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: (
IExpression TrivialValue { get; }

Property Value

Type: IExpression

If the value cannot be determined in a trivial way, it is possible to perform a non-trivial data flow analysis by using the GetPossibleAssignments() method.

See Also