throw; throw ex; optimal
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/22623/net-throwing-exceptions-best-practices">.NET - Throwing Exceptions best practices</a>  </p>
</blockquote>



<p>Hi,</p>

<p>I have seen people re-throwing exceptions as given below. which one is optimal? Why one mechanism is optimal than the other one.</p>

<pre><code>try
{
   // do something
}
catch (exception ex)
{
   // do something
   throw ex;
}
</code></pre>

<hr>

<pre><code>try
{
    // do something
}
catch (exception ex)
{
   // do something
   throw;
}
</code></pre>
