title: What's the difference between the 'ref' and 'out' keywords?
body: <p>I'm creating a function where I need to pass an object so that it can be modified by the function. What is the difference between:</p>
  
  <pre><code>public void myFunction(ref MyClass someClass)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public void myFunction(out MyClass someClass)
  </code></pre>
  
  <p>Which should I use and why?</p>