how to get distinct records from list in c#

Try this

 var DistinctItems = employees.GroupBy(x => x.EmpID).Select(y => y.First());  
 foreach(var item in DistinctItems)  
 {  
 //Add to other List  
 }  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

mvc razor textboxfor change event change another textboxfor value

ASP.NET MVC razor SAP Crystal report