I love string.IsNullOrEmpty method. I\'d love to have something that would allow the same functionality for IEnumerable. Is there such? Maybe some collection he
string.IsNullOrEmpty
I use
list.Where (r=>r.value == value).DefaultIfEmpty().First()
The result will be null if no match, otherwise returns one of the objects
If you wanted the list, I believe leaving of First() or calling ToList() will provide the list or null.