IEqualityComparer.cs 542 B

12345678910111213141516
  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. using System;
  5. namespace System.Collections
  6. {
  7. // An IEqualityComparer is a mechanism to consume custom performant comparison infrastructure
  8. // that can be consumed by some of the common collections.
  9. public interface IEqualityComparer
  10. {
  11. bool Equals(object x, object y);
  12. int GetHashCode(object obj);
  13. }
  14. }