Why can't my view's model bind with my generic ViewModel which implements an interface? (ASP.NET MVC 3)
I'm trying to pass my View an instance of the following ViewModel: public class CompanyListViewModel<T> where T : ICompany { public IEnumerable<T> CompanyList; public IEnumerable<string> StateList; public CompanyListViewModel(IEnumerable<T> list) { CompanyList = list; } } Where the View takes something like so: @model Project.ViewModels.CompanyViewModels.CompanyListViewModel<ICompany> And my controller code passes something like this to the View: CompanyListViewModel<ICompanyInListAsUser> model = new CompanyListViewModel<ICompanyInListAsUser>(_companyService.FilterByCompanyState(state)); Where