Skip to main content
1 of 2
Mert Akcakaya
  • 2.1k
  • 1
  • 13
  • 16

Some collection that is empty has length of zero.

Some collection with a negative length is something else.

Use second one or implement a method like IsEmpty(). Try not to think so hard about such trivial things.

Mert Akcakaya
  • 2.1k
  • 1
  • 13
  • 16