title: Dispatcher BeginInvoke Syntax
body: <p>I have been trying to follow some WCF Data Services examples and have the following code:</p>
  <pre><code>private void OnSaveCompleted(IAsyncResult result)
      {
          Dispatcher.BeginInvoke(() =&gt;
          {
              context.EndSaveChanges(result);
          });
      }
  </code></pre>
  <p>Which is called by the following:</p>
  <pre><code>this.context.BeginSaveChanges(SaveChangesOptions.Batch, this.OnSaveCompleted, null);
  </code></pre>
  <p>Now I am getting a little confused here. Firstly, the first bit of code is showing a syntax error of</p>
  <blockquote>
  <p>Argument type lambda expression is not assignable to parameter type System.Delegate</p>
  </blockquote>
  <p>So instead of blindly trying to follow the example code, I tried to understand what was going on here. Unfortunately, I am struggling to understand the error plus what is actually happening. Can anyone explain?</p>
  <p>I feel a bit stupid as I am sure this is easy.</p>