title: Cleaning up code littered with InvokeRequired
body: <p>I know that when manipulating UI controls from any non-UI thread, you must marshal your calls to the UI thread to avoid issues. The general consensus is that you should use test InvokeRequired, and if true, use .Invoke to perform the marshaling.</p>
  
  <p>This leads to a lot of code that looks like this:</p>
  
  <pre><code>private void UpdateSummary(string text)
  {
      if (this.InvokeRequired)
      {
          this.Invoke(new Action(() =&gt; UpdateSummary(text)));
      }
      else
      {
          summary.Text = text;
      }
  }
  </code></pre>
  
  <p>My question is this: can I leave out the InvokeRequired test and just call Invoke, like so:</p>
  
  <pre><code>private void UpdateSummary(string text)
  {
      this.Invoke(new Action(() =&gt; summary.Text = text));
  }
  </code></pre>
  
  <p>Is there a problem with doing this? If so, is there a better way to keep the InvokeRequired test while not having to copy and paste this pattern all over the place?</p>