I was wondering when working with a HashSet<T> why the property HashSet<T>.Count returns a value of type int instead of uint.
Please correct me when I am wrong, as far as I know it's not possible to have a negative number of entries in a HashSet<T>. So when the smallest returned Count is 0 a uint value would make much more sense in my view.
Does anyone have a clue on this?
Or are there other reasons why it's a return value with typeof int?
 
    