WPF IEnumerable<T> vs IQueryable<T> as DataSource
问题 I have a WPF ListView and I bind it to a IEnumerable<T> collection. Everything works fine, but when I bind it to the IQueryable<T> collection, there are no items in list anymore.. Why? Is it not observable or what? When I look at the definition: public interface IQueryable<T> : IEnumerable<T>, IQueryable, IEnumerable and public interface IEnumerable<T> : IEnumerable so where is the problem? 回答1: It should work, as you correctly point out, these types are compatible. Turn on debugging in your