I\'m trying to pass my View an instance of the following ViewModel:
public class CompanyListViewModel where T : ICompany
{
public IEnumerable<
What you're trying to accomplish should be possible by using an Interface for the ViewModel class and declaring the Generic type as Covariant. Like this:
interface ICompanyListViewModel where T : ICompany
{
}
That way you could also get away with an abstract class instead of an interface for Company.