Initial commit
[mono.git] / mcs / class / referencesource / mscorlib / system / collections / iequalitycomparer.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 /*============================================================
7 **
8 ** Interface:  IEqualityComparer
9 **
10 ** <OWNER>[....]</OWNER>
11 ** 
12 **
13 ** Purpose: A mechanism to expose a simplified infrastructure for 
14 **          Comparing objects in collections.
15 **
16 ** 
17 ===========================================================*/
18 namespace System.Collections {
19     
20     using System;
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);        
27     }
28 }