title: get string representation of object reference in vb.net
body: <p>I want to make a hashtable of object references and I want a different object's reference to be the key. How can I do this in vb.net?</p>
  
  <p>In java (assuming I am using the default toString method and that add() takes a string as a key and an object ref as the value) this would be something like:</p>
  
  <pre><code>hashtable.add(obj1.toString(), obj2)
  </code></pre>
  
  <p>I do not want to use a vb.net gethashcode() function because I want deep clones of objects to have different identifiers. </p>
  
  <p>A related question is what is the default toString in vb.net?</p>
  
  <p>In summery: How can I get a string that represents an object reference in vb.net?</p>