❔ Why hasn't my class implemented the interface?

public interface IFoo
{
    public IEnumerable<int> Get();
}

public class foo: IFoo
{
    public List<int> Get()
    {
        return null;
    }
}


Given that List<int> is a subtype of IEnumerable<int> I don't see what the issue is here.
Was this page helpful?