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