IHashCodeProvider.cs 795 B

123456789101112131415161718
  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.
  4. namespace System.Collections
  5. {
  6. /// <summary>
  7. /// Provides a mechanism for a <see cref="Hashtable"/> user to override the default
  8. /// GetHashCode() function on Objects, providing their own hash function.
  9. /// </summary>
  10. [Obsolete("Please use IEqualityComparer instead.")]
  11. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  12. public interface IHashCodeProvider
  13. {
  14. /// <summary>Returns a hash code for the given object.</summary>
  15. int GetHashCode(object obj);
  16. }
  17. }