* System.Collections/ArrayList.cs:
* System.Collections/Hashtable.cs:
Do not include debugger-related attributes and some interfaces
when compiled outside corlib
* System.Runtime.Serialization/ObjectIDGenerator.cs: Ensure this can be
compiled outside corlib (needed for ML S.X.S.dll where even internals
cannot be used)
* Hashtable.cs: MS (at least latest and greatest) does not always
serialized the HashCodeProvider. Ignoring the error when the field
is not found.
svn path=/trunk/mcs/; revision=143099
* Queue.cs, DictionaryEntry.cs, Hashtable.cs,
CollectionDebuggerView.cs, Stack.cs, ArrayList.cs: Add nicer debug
view for tools which support it.
svn path=/trunk/mcs/; revision=142568
* Hashtable.cs: Implement a faster clone that does not use an
enumerator to iterate over the values, this doubles the speed of
Clone.
The use of an internal constructor that builds from a Hashtable is
done to avoid populating a Hashtable and then updating every field
and structure with new data.
svn path=/trunk/mcs/; revision=103926
2007-11-06 Jb Evain <[email protected]>
* Hashtable.cs: Don't compare user keys against the special removed
key. Fix#324761.
in Test/System.Collections:
2007-11-06 Jb Evain <[email protected]>
* HashtableTest.cs: Add test case for #324761.
svn path=/trunk/mcs/; revision=89004
* Hashtable.cs (PutImpl): Do not access the table twice, only
once.
(TestPrime): optimize, take the sqrt out of the loop.
svn path=/trunk/mcs/; revision=64217
* Add ComVisible(true) to all the classes that needed it.
* Removed documentation from DictionaryBase.cs and moved it to
Monodoc.
* ArrayList.cs: Fixed signature for constructor, parameter names
are normative.
* CollectionBase.cs: Add a couple of missing methods.
svn path=/trunk/mcs/; revision=51018
* Hashtable.cs: Add new IEqualityComparer constructors for 2.0.
* CaseInsensitiveHashCodeProvider.cs IHashCodeProvider.cs: Mark these
as obsolete in 2.0.
svn path=/trunk/mcs/; revision=49484
* Hashtable.cs (GetHash): Avoid a method call. Also, don't store
the this.hcpRef in a variable. This will create another register
which must be pushed on the stack. It is better to just reference
the variable again. hcpRef.GetHashCode (key) is the slow path
anyways, so an extra variable reference here doesn't hurt
(KeyEquals): ditto.
This gives me a few % back in a raw benchmark.
svn path=/trunk/mcs/; revision=38044
== key (ie, they are the same pointer). In many cases, this will
avoid two virtual calls. This gives me 1% on mcs bootstrap (!!!!)
svn path=/trunk/mcs/; revision=38001
* Hashtable.cs: Check for null serialization info in OnDeserialization.
A hashtable subclass can fully override the constructor, so
serializationInfo would be null in this case. Fixes bug #70698.
svn path=/trunk/mcs/; revision=37988
* Hashtable.cs: Add deserialized elements in OnDeserialization, since
when the serialization constructor is called, some of the elements
may not yet be fully deserialized. This fixes bug #70570.
svn path=/trunk/mcs/; revision=37830
* Hashtable.cs: Serialise/Deserialise to two arrays of
keys/values. This will match what MS.NET appears to be
doing.
svn path=/trunk/mcs/; revision=24308
* System.Collections/Hashtable.cs:
* Test/System.Collections/HashtableTest.cs: patch from Carlos A.
Barcenilla ([email protected]) that includes some fixes for
Hashtable + NUnit2 tests.
svn path=/trunk/mcs/; revision=18845