Jay Ant

Jay Ant

  • NA
  • 7
  • 0

How to check if IEnumerable collection is empty?

Apr 15 2009 9:34 AM

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)