title: How do you initialize a FormCollection with properties in .NET?
body: <p>I've tried the usual way of:</p>
  
  <pre><code>var form = new FormCollection { "WeekList" = weekfilter, "PracticeList" = practicefilter}
  </code></pre>
  
  <p>and all possible deviations I could think of, but ultimately had to seperate it apart as:</p>
  
  <pre><code>var form = new FormCollection();
  form["WeekList"] = weekfilter;
  form["PracticeList"] = practicefilter;
  </code></pre>
  
  <p>How can I initialize this inline? Is it possible? (I'm basically trying to mimic a form being submitted)</p>