title: C# How to declare a reference variable to store the address of an object
body: <p>I just need a basic understanding of reference variables as I am in a basic class.  My professor wants us to declare a reference variable to store the address of an object and I don't know how to do that or really what that even does.  </p>
  
  <p>He did teach us how to do something like this.</p>
  
  <pre><code>    public double Method(ref name)
  </code></pre>
  
  <p>But I don't get how that's supposed to store the 'address' of the object.</p>
  
  <p>Any explanation is greatly appreciated.</p>