Dictionary<string, List<EmployeeDetails>> result = employeeInfo
.GroupBy(empInfo => empInfo.EmployeeName)
.ToDictionary(empInfo => empInfo.Key, empInfo => empInfo.ToList());
.GroupBy(empInfo => empInfo.EmployeeName)
.ToDictionary(empInfo => empInfo.Key, empInfo => empInfo.ToList());
No comments:
Post a Comment