1
Vote

ICollection <T> support for contains constraints.

description

As ICollection<T> does not implement ICollection, properties of this type cannot be used with contains constraints (although some concrete classes implement both ICollection<T> and ICollection and will thus work).

It appears as though the bool CheckIfCollectionContainsValue(ICollection collection) could be relaxed to bool CheckIfCollectionContainsValue(IEnumerable collection) although I am not familiar enough with the codebase to say for certain.

comments