

MCQOPTIONS
Saved Bookmarks
1. |
What does the yield return statement specify in below code snippet?
public System.Collections.IEnumerator GetEnumerator() { foreach (char ch in chrs) yield return ch; } |
A. | Returns the output |
B. | Returns the next object in the collection |
C. | Both a & b |
D. | None of the mentioned |
Answer» C. Both a & b | |