<分区>
重复:
看起来 IEnumerable
、ICollection
、IList
和它们的通用等价物在不同的分支中。
标签 c# .net ienumerable
<分区>
看起来 IEnumerable
、ICollection
、IList
和它们的通用等价物在不同的分支中。
最佳答案
这样做是为了保证所有知道如何处理 IEnumerable 的旧方法和代码都可以与您的集合一起使用。
实现 IEnumerable<T>
隐式意味着你实现 IEnumerable
.
分支是指命名空间吗?
关于c# - 为什么 IEnumerable<T> 派生自 IEnumerable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1174569/
相关文章:
C# Linq 到 SQL :cannot add an entity that already exists
c# - ASP.NET MVC 将 ActionLink 中的 ID 传递给 Controller
c# - WPF 中的 Visual Studio 样式撤消/重做按钮
c# - 将 IEnumerable<Class> 转换为 List<string>
c# - 在 Windows Phone 8.1 Universal Store App 中触发警报?
c# - 使用 EntityFramework 和 .NET Native 时出现 PlatformNotSupportedException