As a development proposal for Mark Cidade, when inside the first method, enter the following in the next window:
var whatever = foo;
Then, when in the second method, enter the following:
bool test = object.ReferenceEquals(whatever, foo);
The test result will be displayed in a direct window.
However, the CodeNaked suggestion is better.
David
source share