[C#/Linq] DistinctBy 사용예제


[C#/Linq] DistinctBy 사용예제

using System.Xml.Linq; public class Example { public static void Main() { Console.Write("> \n"); List cars = new List(); cars.Add(new Car() { CarCode = 1, CarType = 101 }); cars.Add(new Car() { CarCode = 1, CarType = 101 }); cars.Add(new Car() { CarCode = 2, CarType = 101 }); cars.Add(new Car() { CarCode = 3, CarType = 102 }); cars.Add(new Car() { CarCode = 3, CarType = 102 }); IEnumerable disti..


원문링크 : [C#/Linq] DistinctBy 사용예제