1
// Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 namespace System
.Collections
8 /// Provides a mechanism for a <see cref="Hashtable"/> user to override the default
9 /// GetHashCode() function on Objects, providing their own hash function.
11 [Obsolete("Please use IEqualityComparer instead.")]
12 [System
.Runtime
.CompilerServices
.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
13 public interface IHashCodeProvider
15 /// <summary>Returns a hash code for the given object.</summary>
16 int GetHashCode(object obj
);