ReSharper Web Help

Value Tracking helps you determine how a certain incorrect value might have passed to a given point in your program, and where it might be passed next. This helps you investigate possible NullReferenceExceptions, inappropriate behavior and reasons why you get incorrect values.

To display value origin
  1. Place the caret at the name of a method, property, variable, field, etc.
  2. On the main menu, choose ReSharper | Inspect | Value Origin or press Ctrl+Shift+Alt+A and choose Value Origin from the Inspect This drop-down list.
  3. The Inspection Results window opens.
    Value Origin
To display value destination
  1. Place the caret at the name of a property, variable, field, etc.
  2. On the main menu, choose ReSharper | Inspect | Value Destination or press Ctrl+Shift+Alt+A and choose Value Destination from the Inspect This drop-down list.
  3. The Inspection Results window opens.
    Value Destination

 Tip

Double-click any data flow element in the Inspection Results window to navigate to it in the editor.

Consider examples below:
If there is an element of a collection, the appropriate node is marked with Collection.
Inspection Results
If there is a lambda expression, the appropriate node is marked with Lambda.
Inspection Results

See Also

Procedures

Reference

External Links