In System.Collections.Generic:
authorRaja R Harinath <harinath@hurrynot.org>
Thu, 16 Jun 2005 12:45:33 +0000 (12:45 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Thu, 16 Jun 2005 12:45:33 +0000 (12:45 -0000)
commit3bb11dfff844fe5cbaf25fb099ce3584d61cfb07
treee58b20d4c8692cdaeb90084a96c2a1e3b162f0bd
parentb7c5fd436242f9d07b71f954c23b1ba7ce97a6c2
In System.Collections.Generic:
* Dictionary.cs (GetKeys, GetValues): Remove.
(SetThreshold): New function to calculate the resize threshold.
(CopyTo): Don't use foreach syntax.
(ContainsValue): Likewise.  Use default equality comparer of the
value type.
(GetObjectData): Use CopyTo to copy into temporary array.  Don't
save redundant _usedSlots and _threshold.
(OnDeserialization): Rewrite.
(ICollection<>.CopyTo): Forward to CopyTo.
(Enumerator._nextIndex): Rename to from _index.
(Enumerator._next, Enumerator.FixNext): Remove.
(Enumerator.Current): Rewrite to avoid need for _next.
(Enumerator.IEnumerator.Reset): Update.
(KeyCollection): Is also IEnumerable<TKey> and IEnumerable.
Update methods to conform to standard.
(KeyCollection.GetEnumerator): Restore.  Return the correct type.
(KeyCollection.Enumerator): Rename from KeyEnumerator.  Simple
wrapper that forwards to Dictionary<,>.Enumerator.
(ValueCollection): Likewise.

In Test/System.Collections.Generic:
* DictionaryTest.cs (SliceCollectionsEnumeratorTest): New test
based on #75053.

svn path=/trunk/mcs/; revision=46087
mcs/class/corlib/System.Collections.Generic/ChangeLog
mcs/class/corlib/System.Collections.Generic/Dictionary.cs
mcs/class/corlib/Test/System.Collections.Generic/ChangeLog
mcs/class/corlib/Test/System.Collections.Generic/DictionaryTest.cs
mcs/class/corlib/Test/System.Runtime.Remoting/SynchronizationAttributeTest.cs
mcs/class/corlib/Test/System.Threading/ThreadTest.cs