Improve Dictionary TryGetValue size/perfomance (dotnet/coreclr#27195)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / Collections / IHashCodeProvider.cs
blob7d6c63f9f1db8e3067e1723b9d00485c36defceb
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
7 /// <summary>
8 /// Provides a mechanism for a <see cref="Hashtable"/> user to override the default
9 /// GetHashCode() function on Objects, providing their own hash function.
10 /// </summary>
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);