IEqualityComparer.cs 529 B

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