title: ASP.NET MVC - get list of objects from query string
body: <p>I'm passed a list of parameters. Such as "Name", "Id", "Type".  There will be an many of these in url, like so:  </p>
  
  <pre><code>"Name=blah1,Id=231,Type=blah1;Name=blah2,Id=2221,Type=blah1;Name=blah3,Id=45411,Type=blah3;"
  </code></pre>
  
  <p>I wonder if there is a way to map these query parameters to a List of objects. So, I can create an object:</p>
  
  <p>MyTestObject {Name;Id;Type}  and can say in my controller </p>
  
  <pre><code>Index(IList&lt;MyTestObject&gt; params)
  </code></pre>
  
  <p>params will be filled in with data from query string.   </p>
  
  <p>Something that is similar to <a href="http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx" rel="nofollow">http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx</a></p>