Commit Graph
32 Commits
Author SHA1 Message Date
Marek Safar 633db36bd3 [System.Core] Don't auto increment when trimming hashset. Fixes #18687 2014-04-09 21:19:11 +02:00
David Straw a257338394 Fix for #14077. HashSet no longer grows in capacity on deserialize
Not all necessary members were being initialized during deserialization
2013-08-19 13:48:17 -06:00
Marek Safar ad5ed89038 Remove static constructor from HashSet 2013-02-28 15:42:55 +01:00
Marek Safar cfe97bf3a5 Share more common code 2013-02-27 22:58:31 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera 486ee8d8f4 Kill the MOONLIGHT define in System.Core. 2013-02-11 13:01:10 -05:00
Neale Ferguson 2d917005cc Correct the count so we deserialize properly 2012-12-19 16:06:15 -05:00
Marek Safar 4497726a3f Remove extra attributes 2012-10-11 10:50:47 +01:00
Enrico Sada 15b9cc32d4 Use HashSet.Comparer for set methods with IEnumerable collection
fix bug 6373 ( https://bugzilla.xamarin.com/show_bug.cgi?id=6373 )
2012-08-04 19:06:19 +02:00
Neale Ferguson f07dea5d00 Implement serialization 2011-11-21 16:32:14 -05:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Marek Safar bd05c6c836 Some .net 4.0 api compatibility fixes 2010-12-15 11:12:07 +00:00
Jérémie Laval c4d8a92388 Implement CreateSetComparer method in HashSet 2010-12-09 16:00:15 +00:00
Marek Safar aad016fd87 Clean up few more warnings 2010-10-15 15:20:25 +01:00
Jb Evain f3b13eb8fb [Fix] HashSet: fix different sets operations. Fixes #572084 2010-08-19 16:52:15 +02:00
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 09be3088ea fix properly
svn path=/trunk/mcs/; revision=121704
2008-12-17 16:31:59 +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 8c4195f800 null dance
svn path=/trunk/mcs/; revision=90410
2007-11-28 21:29:12 +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 396d29e163 Added 2 empty stubs
svn path=/trunk/mcs/; revision=87446
2007-10-13 18:27:48 +00:00
Marek Safar 53a08c5ed3 A few Beta2 Updates
svn path=/trunk/mcs/; revision=83910
2007-08-12 15:46:25 +00:00