C# Linq .ToDictionary() Key Already Exists
问题 Final Edit: I was able to locate the duplicate field in the ini file. Thanks for your help everyone! I'm using a regular expression to parse an ini file and LINQ to store it in a Dictionary: Sample Data: [WindowSettings] Window X Pos='0' Window Y Pos='0' Window Maximized='false' Window Name='Jabberwocky' [Logging] Directory='C:\Rosetta Stone\Logs' EDIT: Here is the file actually causing the problem: http://pastebin.com/mQSrkrcP EDIT2: I've narrowed it down to being caused by the last section