title: How to catch all exceptions in c# using try and catch?
body: <p>I want to write some try and catch that catch any type or exception, is this code is enough (that's the way to do in Java)?</p>
  
  <pre><code>try {
  code....
  }
  catch (Exception ex){}
  </code></pre>
  
  <p>Or should it be</p>
  
  <pre><code>try {
  code....
  }
  catch {}
  </code></pre>
  
  <p>?</p>