I know what yield does, and I\'ve seen a few examples, but I can\'t think of real life applications, have you used it to solve some specific problem?
(I
Another good use for yield is to perform a function on the elements of an IEnumerable and to return a result of a different type, for example:
public delegate T SomeDelegate(K obj);
public IEnumerable DoActionOnList(IEnumerable list, SomeDelegate action)
{
foreach (var i in list)
yield return action(i);
}