7
Answers

How to check if IEnumerable collection is empty?

How to do that properly? When I am trying to do

value != null

nothing happend. But this will work if i will write

value.Count() != 0

that will work. Is it other way to do that?

Answers (7)