Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#yield return generatorsSingle-choice MCQ

When is the body of this iterator method first executed?

static IEnumerable<int> Numbers() { Console.Write("START "); yield return 1; } var seq = Numbers(); Console.Write("GOT "); foreach (var n in seq) Console.Write(n);