It allocates a delegate and blocks break/continue.
✅ Prefer
foreach (var item in list) { }
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
It allocates a delegate and blocks break/continue.
foreach (var item in list) { }