What's the preferred way to implement IsEmpty
statement for your own container-like class?
It could be a simple method bool IsEmpty()
or you could have some gettable property IsEmpty
/ Empty
.
I understand it's probably a matter a personal choice, but would you stick to properties or methods in such cases?