From 60ed38d8582d435abaa0d83b1393ce3041d89ee5 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Thu, 28 Aug 2008 05:05:29 +0000 Subject: [PATCH] Expose EqualityComparer in 2.0 svn path=/trunk/mcs/; revision=111787 --- mcs/class/corlib/System.Collections/Hashtable.cs | 10 +++++----- .../corlib/System.Collections/IEqualityComparer.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mcs/class/corlib/System.Collections/Hashtable.cs b/mcs/class/corlib/System.Collections/Hashtable.cs index 89f1c4c3dd1..083d6c9dde8 100644 --- a/mcs/class/corlib/System.Collections/Hashtable.cs +++ b/mcs/class/corlib/System.Collections/Hashtable.cs @@ -98,7 +98,7 @@ namespace System.Collections { private IComparer comparerRef; private SerializationInfo serializationInfo; -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 private IEqualityComparer equalityComparer; #endif @@ -196,7 +196,7 @@ namespace System.Collections { hcpRef = source.hcpRef; comparerRef = source.comparerRef; -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 equalityComparer = source.equalityComparer; #endif } @@ -313,7 +313,7 @@ namespace System.Collections { } } -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 protected IEqualityComparer EqualityComparer { get { return equalityComparer; @@ -643,7 +643,7 @@ namespace System.Collections { /// Returns the hash code for the specified key. protected virtual int GetHash (Object key) { -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 if (equalityComparer != null) return equalityComparer.GetHashCode (key); #endif @@ -661,7 +661,7 @@ namespace System.Collections { { if (key == KeyMarker.Removed) return false; -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 if (equalityComparer != null) return equalityComparer.Equals (item, key); #endif diff --git a/mcs/class/corlib/System.Collections/IEqualityComparer.cs b/mcs/class/corlib/System.Collections/IEqualityComparer.cs index b6ac6d04c2f..47a32034830 100644 --- a/mcs/class/corlib/System.Collections/IEqualityComparer.cs +++ b/mcs/class/corlib/System.Collections/IEqualityComparer.cs @@ -28,7 +28,7 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -#if NET_2_0 +#if NET_2_0 || BOOTSTRAP_NET_2_0 using System; using System.Runtime.InteropServices; -- 2.25.1