Sanjay Sharma

Sanjay Sharma

  • 1.3k
  • 413
  • 27.4k

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)