Open sandboxFocus

Property TrivialValue

TrivialValue

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

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

If the value cannot be determined trivially, use the GetPossibleAssignments() method to perform a non-trivial data flow analysis.