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  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...