KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm creating a Dictionary object, using IEnumerable 's ToDictionary() extension method: var dictionary = new Dictionary<string, MyType> (myCollection.ToDictionary<MyType, string>(k => k.Key)); When it executes, it throws the following ArgumentException : An item with the same key has already been added. How do I get it to tell me what the duplicate key is?
Tags (comma-separated)
Save Edits
Cancel