Resharper, “Return type can be IEnumerable…” but why? [duplicate]
问题 This question already has answers here : Resharper suggests parameter can be of type 'BaseType' (2 answers) Closed 6 years ago . I have an interface like so... public interface IAccountRepository : IDisposable { IQueryable<Account> FindByUserId(int userId); //here, Resharper says "Return type can be IEnumerable<Account>" } But Resharper is suggesting me to change it to IEnumerable<Account> FindByUserId(int userId) instead. Why is that so? Wouldn't it force the entire objects to be loaded into