title: C# displaying error 'Delegate 'System.Func<...>' does not take 1 arguments
body: <p>I am calling:</p>
  
  <pre><code>        form = new FormFor&lt;Project&gt;()
              .Set(x =&gt; x.Name, "hi");
  </code></pre>
  
  <p>where Project has a field called Name and FormFor's code is:</p>
  
  <pre><code>public class FormFor&lt;TEntity&gt; where TEntity : class
  {
      FormCollection form;
  
  
      public FormFor()
      {
          form = new FormCollection();
      }
  
      public FormFor&lt;TEntity&gt; Set(Expression&lt;Func&lt;TEntity&gt;&gt; property, string value)
      {
          form.Add(property.PropertyName(), value);
  
          return this;
      }
  }
  </code></pre>
  
  <p>but it keeps telling me <code>Delegate 'System.Func&lt;ProjectSupport.Core.Domain.Project&gt;' does not take 1 arguments</code> and I am unsure why. Could anyone shed some light on it for me?</p>