The yield keyword is used in an iterator block to provide a value to the enumerator object or to signal the end of the iteration. When used the expression is evaluated and returned as a value to the e...
Used in an iterator block to provide a value to the enumerator object or to signal the end of iteration. It takes one of the following forms: yield return ;yield break;