Sanjay Sharma

Sanjay Sharma

  • 1k
  • 412
  • 27.1k

LINQ - preferred way

Feb 16 2018 7:09 AM
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.
 
 

Answers (1)