title: list of numbers as parameter in specflow test step
body: <p>I am looking for a way to have a step definition such as:</p>
  
  <p>Given a collection of numbers 1,2,3,4</p>
  
  <p>and map that to a step definition with either a int[], List, or IEnumerable</p>
  
  <p>the regex (\d+(,\d+)*) matches, but means I need two parameters.</p>
  
  <p>At present I have </p>
  
  <pre><code>[Given(@"a collection of numbers (\d+(,\d+)*)")]
  public void givencollectionofnumbers(string p0, string p1)
  {
      //p0 is "1,2,3,4"
      //p1 is ",4"
  }
  </code></pre>
  
  <p>I have a simple workarouns that is </p>
  
  <pre><code>[Given(@"a collection of numbers (.*)")]
  public void givencollectionofnumbers(string p0)
  {
      var numbers = p0.Split(',').Select(x =&gt; int.Parse(x));
  }
  </code></pre>
  
  <p>but I would like to do this in a more elegant manner potentially changing the type of the numbers to doubles and also ensuring that the regex only maches lists of numbers.</p>
  
  <p>I also would rather not use a table for this as it seems excessive for simple list of data</p>
  
  <p>Can anyone help with this</p>