Home Substituting implementations into the T of a parameterized class of type T
 Say I have a setup like public interface IMyInterface { } public class MyImplementation : IMyInterface { } public class MyClass where T : IMyInterface { }  I figured out that I can't do a substitution like var list = new List>() { new MyClass() }  as I'll get the error Cannot convert from MyClass to MyClass Does that mean what I'm trying to do is code smell?