﻿<?xml version="1.0" encoding="utf-8"?><Type Name="IEqualityComparer" FullName="System.Collections.IEqualityComparer"><TypeSignature Language="C#" Value="public interface IEqualityComparer" /><TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IEqualityComparer" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Interfaces /><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This interface allows the implementation of customized equality comparison for collections. That is, you can create your own definition of equality, and specify that this definition be used with a collection type that accepts the <see cref="T:System.Collections.IEqualityComparer" /> interface. In the .NET Framework, constructors of the <see cref="T:System.Collections.Hashtable" />, <see cref="T:System.Collections.Specialized.NameValueCollection" />, and <see cref="T:System.Collections.Specialized.OrderedDictionary" /> collection types accept this interface.</para><para>This interface supports only equality comparisons. Customization of comparisons for sorting and ordering is provided by the <see cref="T:System.Collections.IComparer" /> interface. </para><para>For the generic version of this interface, see <see cref="T:System.Collections.Generic.IEqualityComparer`1" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Defines methods to support the comparison of objects for equality.</para></summary></Docs><Members><Member MemberName="Equals"><MemberSignature Language="C#" Value="public bool Equals (object x, object y);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Equals(object x, object y) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="x" Type="System.Object" /><Parameter Name="y" Type="System.Object" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Implement this method to provide a customized equality comparison for objects. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the specified objects are equal.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the specified objects are equal; otherwise, false.</para></returns><param name="x"><attribution license="cc4" from="Microsoft" modified="false" />The first object to compare.</param><param name="y"><attribution license="cc4" from="Microsoft" modified="false" />The second object to compare.</param></Docs></Member><Member MemberName="GetHashCode"><MemberSignature Language="C#" Value="public int GetHashCode (object obj);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 GetHashCode(object obj) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="obj" Type="System.Object" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Implement this method to provide customized hash codes for objects,<paramref name=" " />corresponding to the customized equality comparison provided by the <see cref="M:System.Collections.IEqualityComparer.Equals(System.Object,System.Object)" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a hash code for the specified object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A hash code for the specified object.</para></returns><param name="obj"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Object" /> for which a hash code is to be returned.</param></Docs></Member></Members></Type>