title: How often should I use try and catch in C#?
body: <p>When writing a C# application whose #1 priority is to <b>never crash</b>, how often should I used a try-catch block?</p>
  
  <p>Can I encapsulate all the statements in a method in try-catch blocks?</p>
  
  <pre><code>public void SomeMethod()
  {
      try
      {
          // entire contents of the function
          // library calls
          // function calls
          // variable initialization .. etc
      }
      catch (Exception e)
      {
          // recover
      }
  }
  </code></pre>
  
  <p>What are the downsides to wrapping everything in try-catch blocks?</p>