任何人都可以向我解释IEnumerable和IEnumerator吗?
例如,什么时候在foreach上使用它?IEnumerable和IEnumerator之间有什么区别?为什么我们需要使用它?
相关分类