C# 14
Pick the right loop
How to Loop Through a List in C#: Every Way, Benchmarked
Khalid Abuhakmeh compares every practical way to loop through a List<T> in C#, from foreach and for to List.ForEach, Index() and spans, and benchmarks them on .NET 10 and .NET 11 RC 1. The post also covers safe removal during iteration and async loops. It is a useful reference for choosing the right loop in everyday and hot-path code.