title: Cannot convert anonymous method to type 'System.Windows.Threading.DispatcherPriority' because it is not a delegate type
body: <p>I want to compile this WPF code and get this error.</p>
  
  <pre><code>public void SetContentObject(Type contentType)
          {
              this.Dispatcher.BeginInvoke(delegate(Type input) //Error here &lt;-
              {
                  object obj = Activator.CreateInstance(input);
                  this.Content = obj;//this.Content declared as object
              }, new object[]
              {
                  contentType
              });
          }
  </code></pre>
  
  <p><strong>Edit 1:</strong></p>
  
  <p>Using .NET 3.5. 4.0 not allowed</p>