3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 /*============================================================
8 ** Interface: IEqualityComparer
10 ** <OWNER>[....]</OWNER>
13 ** Purpose: A mechanism to expose a simplified infrastructure for
14 ** Comparing objects in collections.
17 ===========================================================*/
18 namespace System.Collections {
21 // An IEqualityComparer is a mechanism to consume custom performant comparison infrastructure
22 // that can be consumed by some of the common collections.
23 [System.Runtime.InteropServices.ComVisible(true)]
24 public interface IEqualityComparer {
25 bool Equals(Object x, Object y);
26 int GetHashCode(Object obj);