Hi All,
list.OrderBy(c => c.EmailAddress1).Where(c => c.IsPrimaryContact == true).ToList();
list.Where(c => c.EmailAddress1).OrderBy(c => c.IsPrimaryContact == true).ToList();
Is any perfromance implications.
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 attend3days leftRegister
Amit GuptaRank #190 · 12.8K pointsPosted Feb 16, 2018, 3:16 AM EST
list.Where(c => c.EmailAddress1).OrderBy(c => c.IsPrimaryContact == true).ToList();