* 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
* 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-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
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
* SortedList.cs: Add version checking to the Key/Value enumerators +
implement support for Reset (). Fixes#483985.
svn path=/trunk/mcs/; revision=129076
* LinkedList.cs: ifdef out manually the Serialization part of the
LinkedList.Enumerator. As it is a struct, the field SerializationInfo
have to be assigned in the default constructor, and the tuner cannot
remove that. Fixes#341938 for real.
svn path=/trunk/mcs/; revision=89715
* LinkedList.cs: let's not have an access to the SerializationInfo
field outside of serializations methods (We need a gendarme rule). Fixes#341938.
svn path=/trunk/mcs/; revision=89704
2007-08-20 Jb Evain <[email protected]>
* SortedList.cs: don't crash in ListKeys and ListValues
when CopyTo targets an empty array, and that the
sorted list is empty. Fixes#82492.
in Tests/System.Collections.Generic:
2007-08-20 Jb Evain <[email protected]>
* SortedListTest.cs: Tests for #82492.
svn path=/trunk/mcs/; revision=84419
* SortedDictionary.cs (NodeHelper): Rename from NodeComparer.
(NodeHelper.CreateNode): New.
(Item.set): Move responsibility of creating new nodes to RBTree.Intern.
* RBTree.cs (INodeHelper): Rename from INodeComparer.
(INodeHelper.CreateNode): New.
(Intern): Use it to create a new node if no node is passed in.
svn path=/trunk/mcs/; revision=76926
* RBTree.cs: for TARGET_JVM used Thread Local Storage
istead Thread-Relative Static Fields
* TraceImpl.cs:
* TraceListener.cs:
for TARGET_JVM used Thread Local Storage istead
Thread-Relative Static Fields
svn path=/trunk/mcs/; revision=76917