IEqualityComparer<T>

Overview

Equality comparer interface

Location

Required Methods


Equals

Equals operator; should return true if both values are the same.

 

method Equals(x: T; y: T): Boolean

 

Boolean Equals(T x, T y)

 

func Equals(_ x: T, _ y: T) -> Boolean

 

Boolean Equals(T x, T y)

 

Function Equals(x As T, y As T) As Boolean

Parameters:

  • x:
  • y:

GetHashCode

Gets a hash of this value.

 

method GetHashCode(obj: T): Int32

 

Int32 GetHashCode(T obj)

 

func GetHashCode(_ obj: T) -> Int32

 

Int32 GetHashCode(T obj)

 

Function GetHashCode(obj As T) As Int32

Parameters:

  • obj: