3 ms·
I don't see how you get to that conclusion. These release notes mention enumerators: > C# version 2.0 brought iterators. To put it succinctly, iterators let yo
by bzxcvbn 4y ago
I don't see how you get to that conclusion. These release notes mention enumerators:
> C# version 2.0 brought iterators. To put it succinctly, iterators let you examine all the items in a List (or other Enumerable types) with a foreach loop. Having iterators as a first-class part of the language dramatically enhanced readability of the language and people's ability to reason about the code.
The implicit assumption in that sentence is that enumerables existed before iterators.