Compatibility with ISet

Nov 2, 2011 at 11:20 PM

I suggest Is() should be compatible with ISet<T>.SetEquals(IEnumerable<T>). The following code explains my claim:

var actual = new HashSet<int> { 1, 2 };
actual.Is(1, 2);  // True.
actual.Is(2, 1);  // False, but is equivalent to `actual'.

Thanks a lot.