Skip to main content
 首页 » 编程设计

c#之没有 IEnumerable 但有 IEnumerator 的生活

2024年02月23日14mq0036

<分区>

Possible Duplicate:
Can anyone explain IEnumerable and IEnumerator to me?
What is the difference between IEnumerator and IEnumerable?

我们可以实现 IEnumerator 或其通用版本,从而直接使用它。

那么为什么我们需要 IEnumerable?我们需要 IEnumerable 提供一组新数据还是其他东西!