How to print object ID?
<p>`I need to know if two references from completely different parts of the program refers to the same object.
I can not compare references programaticaly because they are from the different context (one reference is not visible from another and vice versa).</p>

<p>Then I want to print unique identifier for each object using <code>Console.WriteLine()</code>. But <code>ToString()</code> method doesn't return "unique" identifier, it just returns "classname".</p>

<p>Is it possible to print unique identifier in C# (like in Java)?</p>
