title: C# Pragma to suppress break on thrown error
body: <p>First off I run my applications with exceptions thrown on any error (handled or not). </p>
  
  <p>Second I am using a <code>TypeConverter</code> to convert from a user input string to the actual object.</p>
  
  <p>Third <code>TypeConverter</code> offers no <code>TryConvert</code> method so I'm stuck using exceptions for validation, using this rather ugly bit of code here:</p>
  
  <pre><code>try
  {
      this._newValue = null;
  #pragma Magic_SuppressBreakErrorThrown  System.Exception
      this._newValue = this.Converter.ConvertFromString(this._textBox.Text);
  #pragma Magic_ResumeBreakErrorThrown  System.Exception
      this.HideInvalidNotification();
  }
  catch (Exception exception)
  {
      if (exception.InnerException is FormatException)
      {
          this.ShowInvalidNotification(this._textBox.Text);
      }
      else
      {
          throw;
      }
  }
  </code></pre>
  
  <p>I'm finding it rather distracting to have VS break execution every-time I type the <code>-</code> of <code>-1</code>, or some other invalid character. I could use something similar to <a href="https://stackoverflow.com/questions/2111280/general-type-conversion-without-risking-exceptions">this</a> but not all the types I'm converting to have a <code>TryParse</code> method either.</p>
  
  <p>I'm hoping there may be some way to disable breaking for the section of code within the <code>try</code> without changing my exception settings.</p>