c# - How to determine reference equality of two variables in different scope? -
Assume that you are debugging at one point you are in method A, in which a parameter foo type These two variables can be similar to I believe that you can use the After "mark" the object, you will see the assigned ID in the second call for Foo. Foo Later you are in Law B, which also takes a parameter of type
Foo .
Foo , but how can you tell? Because they are in different areas, you can not call
contextExchange . Is there a way that you can get real memory space, point to the variable so that you can tell if they are examples?
object id feature Are there. More information can be found on this, but in a nutshell:
Comments
Post a Comment