I have a List of Objects,
var distinctList = someList.DistinctBy(x => x.Prop2).ToList();
Need to get distinct list without using distinct.
I have a List of Objects,
var distinctList = someList.DistinctBy(x => x.Prop2).ToList();
Need to get distinct list without using distinct.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Priyanka K SRank #1,385 · 1.2K reputationPosted Aug 7, 2021, 4:19 AM EDT
Basem AlshabaniRank #3,323 · 432 reputationPosted Aug 7, 2021, 4:19 AM EDT
Madan ShekarRank #428 · 5.9K reputationPosted Aug 7, 2021, 4:20 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Aug 7, 2021, 7:04 AM EDT