Alexander Köplinger
48e112d652
[Cleanup] Removed TARGET_JVM
...
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Miguel de Icaza
776002ee28
Remove profanity
2014-03-28 20:56:02 -04:00
Simon Hartmann
11b5312c83
Bug 17838 - IDictionary item property implemention for ConcurrentDictionary/SortedList_T throws exception on non-existing key
...
Avoid double lookup for Dictionary IDictionary.get_Item property impl
2014-02-19 16:40:57 +01:00
Marek Safar
ceb62fdbe8
Fix typo
2014-02-13 22:13:30 +01:00
Marek Safar
8d40cb5b9c
[system] Fix valid sorted set operations which could cause underlying tree modification
2014-02-13 19:59:56 +01:00
Marek Safar
c964e24d02
[system] More SortedDictionary argument checks
2014-02-05 13:16:40 +01:00
Marek Safar
d90906cbaa
[system] Fix calls on empty linked list
2014-02-05 12:07:17 +01:00
Marek Safar
c5eab2d5dc
[System] Use generic equality comparer in Find/FindLast methods. Fixes #5245
2014-01-14 14:25:45 +01:00
Jeffrey Stedfast
fb2546951c
Prevent potential integer overflows in SortedList's binary search midpoint calculation
2013-07-12 14:05:55 -04: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
f378e23a3f
Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:41:51 -05:00
Miguel de Icaza
58cb859143
Bring Parallel LINQ to the Mobile profile
2012-11-06 18:18:12 -05:00
Konrad M. Kruczynski
6f76efaedf
Merge branch 'master' of https://github.com/mono/mono into issue4328
...
Conflicts:
mcs/class/System/Test/System.Collections.Generic/SortedListTest.cs
2012-09-13 16:19:53 +02:00
Konrad M. Kruczynski
f060b8055b
Fix for the bug #4328 .
2012-09-12 23:02:09 +02:00
Martin Baulig
018521fa73
Fix #4327 : Properly handle exception from IComparer.Compare.
...
SortedList throws InvalidOperationException when IComparer.Compare
throws an Exception.
2012-06-20 03:46:00 +02:00
Miguel de Icaza
1c19405a83
[class libraries] drop NET_1_0 definitions
2012-06-02 21:46:34 -04:00
Rolf Bjarne Kvinge
17f7c3dbb7
Include System.Collections.Generics.SortedSet in the mobile profile. Fixes #3827 .
2012-03-13 12:37:59 +01:00
Marek Safar
482e63b5bd
Few corcompare fixes
2011-09-05 19:02:32 +01:00
Alan McGovern
202db450f5
[LinkedList] Optimise Clear slightly.
2011-08-18 16:00:23 +01:00
Todd Foster
e787a12ab2
Fix bug #311 : On LinkedList.Clear, detach each node instead of dropping them en masse.
2011-08-17 11:30:53 -07:00
Lluis Sanchez
e7ab7da200
Fix ICollection.CopyTo in the Stack class
2011-04-19 12:58:28 +02:00
Miguel de Icaza
48292550e8
More NET_2_0 define removal
2011-03-16 21:46:02 -04:00
Sebastien Pouliot
4eedff1487
Fix parameter name mismatches between Moonlight and Silverlight
2011-03-10 14:33:31 -05:00
Luke Halliwell
c135c68bf6
Fix for bug 349053 - unable to serialize SortedDictionary
2011-01-03 21:43:27 -05:00
Marek Safar
d84d7c7eb9
Remove no longer used BOOTSTRAP conditionals
2010-12-29 12:41:12 +00:00
Marek Safar
6fbaa0e59d
Fixed warning
...
svn path=/trunk/mcs/; revision=156117
2010-04-26 17:17:50 +00:00
Jb Evain
6635351ed8
remove unused using
...
svn path=/trunk/mcs/; revision=155514
2010-04-15 16:12:45 +00:00
Raja R Harinath
195fec2107
SortedSet: Don't maintain state in the view
...
* System.Collections.Generic/SortedSet.cs (SortedSubSet.count): Remove.
(SortedSubSet..ctor): Move counting loop ...
(SortedSubSet.Count): ... here.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update to changes.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Likewise. Use bounds
to determine if the view is empty, rather than the count.
* Test/System.Collections.Generic/SortedSetTest.cs (ViewCount):
Test that count reflects changes in underlying set.
svn path=/trunk/mcs/; revision=155125
2010-04-09 06:41:10 +00:00
Raja R Harinath
c940e13b2b
SortedSet: Enable set comparision operations on views, and improve performance
...
* RBTree.cs (Bound): New. Returns the greatest lower bound and
least upper bound of the given key.
(GetSuffixEnumerator): New. Returns an enumerator that starts at
the given key.
(NodeEnumerator): Provide suffix enumerator functionality.
* SortedSet.cs (GetEnumerator): Delegate to ...
(TryGetEnumerator): ... this. New virtual function.
(Enumerator): Provide subset enumeration using RBTree's suffix enumerators.
(SortedSubSet.count): New.
(SortedSubSet.GetCount): Use it.
(SortedSubSet.TryAdd, SortedSubSet.TryRemove): Update count.
(SortedSubSet.GetMin, SortedSubSet.GetMax): Use RBTree.Bound().
(SortedSubSet.GetEnumerator): Remove.
(SortedSubSet.TryGetEnumerator): New. Use ranged enumerators.
* SortedSetTest.cs: Update to test more view functionality,
including set comparison operators.
svn path=/trunk/mcs/; revision=154974
2010-04-07 16:31:25 +00:00
Jb Evain
e67d275665
2010-04-06 Jb Evain <[email protected] >
...
* SortedSet.cs: implement Count for SortedSubSet.
svn path=/trunk/mcs/; revision=154840
2010-04-06 12:39:06 +00:00
Raja R Harinath
4478f7eb04
SortedSet: Complete implementation of more methods
...
* SortedSet.cs (IsProperSubsetOf, IsSubsetOf): Implement using ...
(is_subset_of): ... new helper.
(IsProperSupersetOf, IsSupersetOf): Implement using ...
(is_superset_of): ... new helper.
(covers, nodups, overlaps): New helpers.
(SetEquals): Implement.
(Overlaps): Implement using overlaps().
(SymmetricExceptWith): Use nodups() helper.
svn path=/trunk/mcs/; revision=154788
2010-04-05 09:59:41 +00:00
Raja R Harinath
40979641a2
SortedSet: implement IntersectWith, UnionWith, ExceptWith and SymmetricExceptWith
...
* System.Collections.Generic/SortedSet.cs (CheckArgumentNotNull): New helper.
(IntersectWith, UnionWith): Implement.
(ExceptWith, SymmetricExceptWith): Likewise.
(SortedSubSet.IntersectWith): Implement override.
* Test/System.Collections.Generic/SortedSetTest.cs: Add tests for IntersectWith,
UnionWith, ExceptWith and SymmetricExceptWith.
svn path=/trunk/mcs/; revision=154769
2010-04-04 18:22:37 +00:00
Raja R Harinath
5db7238202
* RBTree.cs (do_remove): Ensure the node returned is suitable for re-insertion.
...
svn path=/trunk/mcs/; revision=154762
2010-04-04 05:25:53 +00:00
Jb Evain
66763c7baf
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: implement Mix and Max for subsets.
svn path=/trunk/mcs/; revision=154725
2010-04-02 15:11:48 +00:00
Jb Evain
71b91562e5
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: implement GetViewBetween.
svn path=/trunk/mcs/; revision=154722
2010-04-02 14:56:06 +00:00
Jb Evain
4b34728de0
refactoring
...
svn path=/trunk/mcs/; revision=154720
2010-04-02 13:42:38 +00:00
Jb Evain
d71e62b2f8
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: optimize Reverse. Add a virtual TryAdd and TryRemove
to override in sub trees.
svn path=/trunk/mcs/; revision=154717
2010-04-02 13:36:23 +00:00
Jb Evain
e1936f0a89
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: implement Min and Max.
svn path=/trunk/mcs/; revision=154714
2010-04-02 12:28:09 +00:00
Jb Evain
a902350772
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: implement RemoveWhere.
svn path=/trunk/mcs/; revision=154709
2010-04-02 12:05:04 +00:00
Jb Evain
454311541b
2010-04-02 Jb Evain <[email protected] >
...
* SortedSet.cs: implement Reverse.
svn path=/trunk/mcs/; revision=154705
2010-04-02 10:53:41 +00:00
Jb Evain
f9b47e69c8
2010-04-01 Jb Evain <[email protected] >
...
* SortedSet.cs: fix API.
svn path=/trunk/mcs/; revision=154654
2010-04-01 17:28:00 +00:00
Jb Evain
ba41623fa7
2010-04-01 Jb Evain <[email protected] >
...
* SortedSet.cs: add new SortedSet type in .net 4.0
svn path=/trunk/mcs/; revision=154652
2010-04-01 17:05:57 +00:00
Miguel de Icaza
5845129be7
2010-03-03 Miguel de Icaza <[email protected] >
...
* RBTree.cs: Make these serializable, should fix the serialization
across appdomains of SortedDictionaries
svn path=/trunk/mcs/; revision=153922
2010-03-19 21:45:57 +00:00
Sebastien Pouliot
dd1802b725
In System.Diagnostics:
...
2010-03-11 Sebastien Pouliot <[email protected] >
* Debug_2_1.cs: Change type to static to match SL4
In .:
2010-03-11 Sebastien Pouliot <[email protected] >
* net_2_1_raw_System.dll.sources: Add existing files that are
part of SL4
In System.Collections.Generic:
2010-03-11 Sebastien Pouliot <[email protected] >
* ISet.cs: Add NET_2_1 since this is part of SL4
svn path=/trunk/mcs/; revision=153477
2010-03-11 18:15:05 +00:00
Jb Evain
654b783fc0
2009-12-01 Jb Evain <[email protected] >
...
* Stack.cs (Enumerator.Dispose): tag the enumerator as finished
upon Dispose.
svn path=/trunk/mcs/; revision=147248
2009-12-01 18:18:30 +00:00
Marek Safar
e8bd31c03f
2009-11-26 Marek Safar <[email protected] >
...
* LinkedList.cs: Allocate less.
svn path=/trunk/mcs/; revision=146981
2009-11-26 13:01:23 +00:00
Jb Evain
2ece19dfb2
in System.Collections.Generic:
...
2009-11-25 Jb Evain <[email protected] >
* Queue.cs (Enqueue): deal with the case where the tail
is off the array when deciding to enlarge the capacity.
in Test/System.Collections.Generic:
2009-11-25 Jb Evain <[email protected] >
* QueueTest.cs: add test for a specific combination of
calls that make the queue crash when enqueuing an item.
svn path=/trunk/mcs/; revision=146925
2009-11-25 17:30:16 +00:00
Jb Evain
108981cf3b
in System.Collections.Generic:
...
2009-11-25 Jb Evain <[email protected] >
* Queue.cs (ICollection.CopyTo): fix typo, remove code duplication.
in Test/System.Collections.Generic:
2009-11-25 Jb Evain <[email protected] >
* QueueTest.cs: add tests for ICollection.CopyTo.
svn path=/trunk/mcs/; revision=146914
2009-11-25 15:43:49 +00:00
Marek Safar
b248ca3947
Add to bootstrap
...
svn path=/trunk/mcs/; revision=146170
2009-11-13 18:42:35 +00:00
Miguel de Icaza
d90afad63e
2009-11-02 Miguel de Icaza <[email protected] >
...
* Copy some collections from WindowsBase here for 4.0 support.
Add a handful of methods from 4.0 as well
svn path=/trunk/mcs/; revision=145180
2009-11-02 06:25:38 +00:00