Menu

#1__State

1 post

Feed
1 of 1 post
How a yield return iterator decompiles
📰
0Read More

How a yield return iterator decompiles

DEV Community: csharp·Zero Heartbeat·6 days ago
#QYMP1q8E
#devtocsharp#devto#dev#1__state#return

A synchronous IEnumerable method with yield return is replaced by a generated class — a d__N that is enumerable, enumerator and IDisposable at once, with an int 1__state, a 2__current, hoisted locals, and a MoveNext that is a switch.…

15s