SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
KeyValuePair<string,int> current = this.recent.SingleOrDefault(r => r.Key.Equals(dialog.FileName) == true); if (current.Key == null) this.recent.Add(new KeyValuePair<string,int>(dialog.FileName,0));