Know your loops

less than 1 minute read

For is the fastest way of iterating over a collection, foreach is a little slower, and LINQ queries are slowest.

Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...