KeyComparer KeyComparer Class

Definition

public class KeyComparer : IEqualityComparer<IKey>, IComparer<IKey>
Public Class KeyComparer
    Implements IEqualityComparer(Of IKey), IComparer(Of IKey)
Inheritance
System.ObjectSystem.Object
KeyComparerKeyComparer
Implements
System.Collections.Generic.IEqualityComparer<IKey>System.Collections.Generic.IEqualityComparer(Of IKey) System.Collections.Generic.IComparer<IKey>System.Collections.Generic.IComparer(Of IKey)

Constructors

KeyComparer(Boolean) KeyComparer(Boolean)

public KeyComparer(bool compareAnnotations = true)
Public Sub New(compareAnnotations As Boolean = True)
Parameters
compareAnnotations
System.Boolean System.Boolean

Methods

Compare(IKey, IKey) Compare(IKey, IKey)

public int Compare(IKey x, IKey y)
Public Function Compare(x As IKey, y As IKey) As Integer
Parameters
Returns
System.Int32 System.Int32

Equals(IKey, IKey) Equals(IKey, IKey)

public bool Equals(IKey x, IKey y)
Public Function Equals(x As IKey, y As IKey) As Boolean
Parameters
Returns
System.Boolean System.Boolean

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetHashCode(IKey) GetHashCode(IKey)

public int GetHashCode(IKey obj)
Public Function GetHashCode(obj As IKey) As Integer
Parameters
obj
IKey IKey
Returns
System.Int32 System.Int32

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object