備註

這個介面允許實作自訂的相等比較的集合。This interface allows the implementation of customized equality comparison for collections.也就是說，您可以在其中建立您自己定義的型別是否相等T，並指定可接受的集合類型會使用此定義IEqualityComparer<T>泛型介面。That is, you can create your own definition of equality for type T, and specify that this definition be used with a collection type that accepts the IEqualityComparer<T> generic interface.在.NET Framework 中，建構函式的Dictionary<TKey,TValue>接受此介面的泛型集合型別。In the .NET Framework, constructors of the Dictionary<TKey,TValue> generic collection type accept this interface.