Skip to main content

All Questions

Tagged with
3 votes
1 answer
2k views

Why is iterating through List<T> more expensive than iterating through Array in .NET?

According to the answers in this post, List<T> is backed by an Array. According to this article, list iteration is considerably slower than array iteration. If Lists are arrays 'under the hood',...
JPtheK9's user avatar
  • 199