SyntaxFix
Write A Post
Hire A Developer
Questions
In case we want all the Person (instead of only one Person) in the returning dictionary, we could:
var _people = personList .GroupBy(p => p.FirstandLastName) .ToDictionary(g => g.Key, g => g.Select(x=>x));