title: How can an object refer to itself?
body: <p>in Javascript every object carries a <code>this</code> which refers to itself.  How can a field in a class be created to refer to the object that contains it?</p>
  
  <p><strong>- addendum -</strong></p>
  
  <p>to clarify, what I mean is that if I declare:</p>
  
  <pre><code>Class xc
    Private i As Integer
  End Class
  </code></pre>
  
  <p>and then make the reference:</p>
  
  <pre><code>Dim x As New xc()
  x.Me
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>'Me' is not a member of
    'MyProject.xc'. - \x...\test.vb(3)
    - Source Line: x.Me</p>
  </blockquote>
  
  <p>incidentally, the question arises from the following, related question: <a href="https://stackoverflow.com/questions/16572018/how-to-refer-to-an-object-created-by-with-within-the-construct">How to refer to an object created by &quot;with&quot; within the construct?</a></p>