Asp.Net MVC 2 .NET 4 only bind ICollection<T>, not IEnumerable<T>

Posted by Carl Hörberg on Stack Overflow See other posts from Stack Overflow or by Carl Hörberg
Published on 2010-04-21T14:24:47Z Indexed on 2010/04/21 14:33 UTC
Read the original article Hit count: 424

Since I upgraded to .NET 4 or MVC 2 I can only bind lists to ICollection<> and types inheriting from ICollection<>. Previously, in .NET 3.5 and MVC 1 i could bind to arrays and IEnumerable<>. Is this a known issue or have i done something stupid?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about .net-4.0