title: Which is the best practice to use try - catch blocks with foreach loop?
body: <p>what is the best practice to use try{} catch{} blocks regarding performance ?</p>
  
  <pre><code>foreach (var one in all)
  {
      try
      {
          //do something
      }
      catch { }
  }
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>try
  {
      foreach (var one in all)
      {
          // do something
      }
  }
  catch { }
  </code></pre>