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);