How to merge two lists in c#?
Rajeev Punhani
List employees = new List() { new Employee { EmpID = 1 , Name ="Martin"}, new Employee { EmpID = 2 , Name ="Peter"}, new Employee { EmpID = 3 , Name ="Michael"}, new Employee { EmpID = 3 , Name ="Michael"} }; List employees2 = new List() { new Employee { EmpID = 1 , Name ="Abundantcode"}, new Employee { EmpID = 2 , Name ="Best Programmer"}, new Employee { EmpID = 3 , Name ="Mike"}, new Employee { EmpID = 3 , Name ="Michael"} }; var MergedEmployees = employees.Union(employees2).ToList();