title: Use a single collection to hold all parameters
body: <p>I take user input on a form and bind it to a parameter which will then tie to my report. Can I use a single collection to hold all of my parameters? It seems redundant to have to create a collection and a parameter for every item I want to pass to my report. </p>
  
  <hr>
  
  <p>To make this work the way I require, I've had to add a collection for each param on my form:</p>
  
  <pre><code>// #1 Setup a collections
      ParameterValues firstNameCollection = new ParameterValues();
      ParameterValues lastNameCollectoin = new ParameterValues();
  </code></pre>
  
  <p>Then I created the actual parameter:</p>
  
  <pre><code>// #2 Set the parameters
      ParameterDiscreteValue firstNameParam = new ParameterDiscreteValue();
      ParameterDiscreteValue lastNameParam = new ParameterDiscreteValue();
  </code></pre>
  
  <p>Bound the value:</p>
  
  <pre><code>// #3 Set the values
      firstNameParam.Value = "First Name";
      lastNameParam.Value = "Last Name";
  </code></pre>
  
  <p>Added the parameters to the collection:</p>
  
  <pre><code>// #4 Add the parameters to the collection
      firstNameCollection.Add(firstNameParam);
      lastNameCollectoin.Add(lastNameParam);
  </code></pre>
  
  <p>And applied the collections to the form:</p>
  
  <pre><code>// #5 Apply the collections to the report
      MyReport.DataDefinition.ParameterFields["FirstName"].ApplyCurrentValues(firstNameCollection);
      MyReport.DataDefinition.ParameterFields["LastName"].ApplyCurrentValues(lastNameCollectoin);
  </code></pre>