|
|
|
|
|
by torginus
1468 days ago
|
|
FYI, IEnumerator is the thing that can be enumerated, and IEnumerable is the thing that can give you an IEnumerator when you call GetEnumerator() on it. Both are supported as return types with yield return, in fact if you use IEnumerable, the generated iterator's implementation will be: IEnumerator GetEnumerator() => return this;
|
|