Let's say you are debugging. At one point you are in Method A, which has a parameter foo of type Foo
. Later on you are in Method B, which also takes a parameter foo of type Foo
.
These two variables may well be the same Foo
instance, but how do you tell? Because they are in different scope, you cannot call ReferenceEquals()
. Is there some way you can obtain the actual memory location the variables point to so that you can tell if they are the instance?
I believe you can use the Make Object ID
feature. More information on this can be found here, but to summarize:
After you "mark" the object, you will see the assigned ID in the second call to Foo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With