Explicit logic?
( !string.IsNullOrEmpty(letter_pressed) && x.CompanyName.StartsWith(letter_pressed) ) || string.IsNullOrEmpty(letter_pressed)
Implicit logic?
string.IsNullOrEmpty(letter_pressed) || x.CompanyName.StartsWith(letter_pressed)
Does lesser code always trumps the longer code?
No comments:
Post a Comment