❔ Why hasn't my class implemented the interface?
Given that
List<int> is a subtype of IEnumerable<int> I don't see what the issue is here.public interface IFoo
{
public IEnumerable<int> Get();
}
public class foo: IFoo
{
public List<int> Get()
{
return null;
}
}List<int>IEnumerable<int>