Open sandboxFocus

Property TrivialValue

TrivialValue

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

Declaration
IExpression TrivialValue { get; }
Property Value
Type Description
IExpression
Remarks

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.