jbliss02
12/31/2014 - 2:19 PM

C# unique items from list based on property

C# unique items from list based on property

List<SingleTerms> distinct = temp
  .GroupBy(p => p.termsId)
  .Select(g => g.First())
  .ToList();