?
What does the yield return statement specify in the following C# code snippet?
What does the yield return statement specify in the following C# code snippet?
public System.Collections.IEnumerator GetEnumerator()
{
foreach (char ch in chrs)
yield return ch;
}
public System.Collections.IEnumerator GetEnumerator()
{
foreach (char ch in chrs)
yield return ch;
}
Join the Discussion
Login to post a comment or share your explanation.
Login