C# – The fastest way to iterate a List
In this post, we will see the fastest way to iterate a List. We start creating a Console Application called ReadList and we add a Class called Core: [CORE.CS] Now, we will add four methods to iterate the List using the statements For, Foreach, List<T>.Foreach and Foreach with CollectionsMarshal.AsSpan: FOR(We don’t sure the collection is… Read More »