summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Collections/IHashCodeProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mscorlib/src/System/Collections/IHashCodeProvider.cs')
-rw-r--r--src/mscorlib/src/System/Collections/IHashCodeProvider.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mscorlib/src/System/Collections/IHashCodeProvider.cs b/src/mscorlib/src/System/Collections/IHashCodeProvider.cs
new file mode 100644
index 0000000000..96dbe07f07
--- /dev/null
+++ b/src/mscorlib/src/System/Collections/IHashCodeProvider.cs
@@ -0,0 +1,29 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+/*============================================================
+**
+** Interface: IHashCodeProvider
+**
+**
+**
+**
+** Purpose: A bunch of strings.
+**
+**
+===========================================================*/
+namespace System.Collections {
+
+ using System;
+ // Provides a mechanism for a hash table user to override the default
+ // GetHashCode() function on Objects, providing their own hash function.
+ [Obsolete("Please use IEqualityComparer instead.")]
+ [System.Runtime.InteropServices.ComVisible(true)]
+ public interface IHashCodeProvider
+ {
+ // Interfaces are not serializable
+ // Returns a hash code for the given object.
+ //
+ int GetHashCode (Object obj);
+ }
+}