* Test/System.Collections.Generic/HashSetTest.cs:
* System.Collections.Generic/HashSet.cs: fix and test for bug #579791.
Patch from Tiaan Geldenhuys.
svn path=/trunk/mcs/; revision=151705
* System.Collections.Generic/HashSet.cs (Enumerator.next): Rename from
Enumerator.current and change meaning to be the index of the slot to start
searching on the next iteration.
(Enumerator.current): New. Contains the current element.
(Enumerator.MoveNext): Update. Avoid an out-of-bounds access.
(Enumerator.Current): Don't check any invariants.
* Test/System.Collections.Generic/HashSetTest.cs (Enumerate_Current):
New test, including cases from #491858, #517415.
svn path=/trunk/mcs/; revision=139105
* HashSet.cs (.ctor (IEnumerable<T>,*)): only get the count of the
enumerable if the source collection implements ICollection<T>, so that
we only iterate once over the source collection.
svn path=/trunk/mcs/; revision=112897
* HashSet.cs: start implementation of HashSet<T>, actually
implemented as a reduction of Dictionary<K, V>. Contains
basic set operations (that requires optimization though).
svn path=/trunk/mcs/; revision=90406