7
Answers

How to check if IEnumerable collection is empty?

Jay Ant

Jay Ant

15y
89k
1

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)