diff options
Diffstat (limited to 'src/mscorlib/src/System/Collections/IHashCodeProvider.cs')
-rw-r--r-- | src/mscorlib/src/System/Collections/IHashCodeProvider.cs | 30 |
1 files changed, 30 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..aefa15e1e5 --- /dev/null +++ b/src/mscorlib/src/System/Collections/IHashCodeProvider.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more 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); + } +} |