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<out T> where T : ICompany
{
}
That way you could also get away with an abstract class instead of an interface for Company.
Consider that interfaces cannot provide implementations when you think about this situation and it should become apparent that you need to close your generic type with the specific interface you want the generic class to operate upon.
If it's not apparent, well, consider further that from a pure OOP standpoint, interfaces can't define implementations, only classes can, and that C# doesn't allow you to specify overlapping interfaces.
It sounds to me like you are trying to treat an interface like an abstract base class.