Commit Graph
14 Commits
Author SHA1 Message Date
Sebastien Pouliot bfaef1e6bc 2010-04-16 Sebastien Pouliot <[email protected]>
* HashSet.cs: Implement ISet<T> in MOONLIGHT too


svn path=/trunk/mcs/; revision=155628
2010-04-16 12:47:38 +00:00
Gonzalo Paniagua Javier 4260619e7b 2010-02-13 Gonzalo Paniagua Javier <[email protected]>
* 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
2010-02-13 17:48:34 +00:00
Marek Safar 7a69ecc211 2009-11-13 Marek Safar <[email protected]>
* HasSet.cs: Add ISet, debugger view.


svn path=/trunk/mcs/; revision=146173
2009-11-13 19:13:02 +00:00
Raja R Harinath b0ce9fa874 * HashSet.cs (Enumerator.IEnumerator.Reset): Check invariants.
svn path=/trunk/mcs/; revision=139107
2009-07-30 18:03:20 +00:00
Raja R Harinath 16b5f90d63 Fix HashSet<>-related parts of #491858, #517415
* 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
2009-07-30 17:49:41 +00:00
Jb Evain df74eca620 2009-07-09 Jb Evain <[email protected]>
* HashSet.cs (ICollection<T>.Add): fix for bug #520760. Do not throw
	when adding duplicates.


svn path=/trunk/mcs/; revision=137653
2009-07-09 19:12:13 +00:00
Jb Evain d439169d83 2009-01-27 Jb Evain <[email protected]>
* HashSet.cs: use Paolo's trick to return items in insertion order
	when possible.


svn path=/trunk/mcs/; revision=124656
2009-01-27 13:29:58 +00:00
Jb Evain b61f0a3393 2008-12-17 Jb Evain <[email protected]>
* HashSet.cs (CopyTo): fix logic.


svn path=/trunk/mcs/; revision=121700
2008-12-17 16:11:39 +00:00
Jb Evain 3a847b4c67 2008-09-12 Jb Evain <[email protected]>
* 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
2008-09-12 18:34:13 +00:00
Jb Evain b1a3a203ab 2008-04-29 Jb Evain <[email protected]>
* HashSet.cs: clear empty slots to allow the GC to collect
	their values.


svn path=/trunk/mcs/; revision=102115
2008-04-29 13:10:03 +00:00
Jb Evain f825831e51 2007-11-30 Jb Evain <[email protected]>
* HashSet.cs: corcompare love.


svn path=/trunk/mcs/; revision=90460
2007-11-30 00:03:28 +00:00
Jb Evain 6e33ffc7f1 2007-11-28 Jb Evain <[email protected]>
* HashSet.cs: do the ArgumentNullException dance.


svn path=/trunk/mcs/; revision=90409
2007-11-28 21:11:30 +00:00
Jb Evain 9b338fbc35 2007-11-28 Jb Evain <[email protected]>
* 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
2007-11-28 20:53:38 +00:00
Marek Safar 53a08c5ed3 A few Beta2 Updates
svn path=/trunk/mcs/; revision=83910
2007-08-12 15:46:25 +00:00