title: ref vs out in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/135234/difference-between-ref-and-out-parameters-in-net">Difference between ref and out parameters in .NET</a>  </p>
  </blockquote>
  
  
  
  <p>When to use <code>ref</code> and when to use <code>out</code> ?
  What is difference between the both ?
  How and where they are used ?</p>
  
  <p>Please share an example showing difference between the both <code>ref</code> and <code>out</code> .</p>
  
  <ul>
  <li>Thanks.</li>
  </ul>