Monday, June 23, 2014

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  

Ensure that this project has Microsoft.Bcl.Build installed and packages.config is located next to the project file

In my Xamarin form application their was dependency Restclient on Microsoft.Bcl.Build Microsoft.Bcl. i just remove all using nuget and ...