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.
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.