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.
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.