Mid LINQ

Convert list to dictionary with name as key?

Convert list to dictionary with name as key

var dict = employees.ToDictionary(e => e.Name, e => e);

More from LINQ Tutorial

All questions for this course