Remove duplicates in the list using linq September 24, 2022 by Tarik var distinctItems = items.GroupBy(x => x.Id).Select(y => y.First());