Why would I use Enumerable.ElementAt() versus the [] operator?

Because Enumerable is more generic, and a collection represented by enumerable may not have an indexer.

But, if it does – don’t use ElementAt() it’s probably not going to be as efficient.

Leave a Comment