What is the name of the “yield return” concept? IEnumerable, Iterator, Generator?
问题 What exactly is the official name of the yield return concept? public IEnumerable<T> Bar() { ... yield return foo; ... } I've heard(read) it being referred to as: Iterator IEnumerabe Generator <your choice> Isn't an iterator just some "thing" that iterates over something? A List<T> is an IEnumerable<T> , so doesn't seem reasonable as well. A lot of answers here on SO that talk about yield return use one of these two terms. What about "generators"? Or does that only apply when you're