NRefactory icon indicating copy to clipboard operation
NRefactory copied to clipboard

Wrong Warning: Use of Linq method when there's is a better alternative

Open Indomitable opened this issue 11 years ago • 0 comments

Hi, I'm using Dictionary with Linq method ElementAt and MonoDevelop gives me a warning Use of Linq method when there's is a better alternative, and suggest to change ElementAt with indexer [] which for dictionaries is not same.

ElementAt returns KeyValuePair but [] gives only the value of dictionary element.

Indomitable avatar Nov 27 '13 08:11 Indomitable