All of the examples I\'ve seen of using yield return x; inside a C# method could be done in the same way by just returning the whole list. In those cases, is th
yield return x;
The basic reason for using yield is it generates/returns a list by itself. We can use the returned list for iterating further.