Table of Contents

Class LambdaEqualityComparer<T>

Namespace
Lime
Assembly
Lime.dll
public class LambdaEqualityComparer<T> : IEqualityComparer<T>

Type Parameters

T
Inheritance
LambdaEqualityComparer<T>
Implements
Inherited Members

Constructors

LambdaEqualityComparer(Func<T, T, bool>)

public LambdaEqualityComparer(Func<T, T, bool> lambdaComparer)

Parameters

lambdaComparer Func<T, T, bool>

LambdaEqualityComparer(Func<T, T, bool>, Func<T, int>)

public LambdaEqualityComparer(Func<T, T, bool> lambdaComparer, Func<T, int> lambdaHash)

Parameters

lambdaComparer Func<T, T, bool>
lambdaHash Func<T, int>

Methods

Equals(T, T)

Determines whether the specified objects are equal.

public bool Equals(T x, T y)

Parameters

x T

The first object of type T to compare.

y T

The second object of type T to compare.

Returns

bool

true if the specified objects are equal; otherwise, false.

GetHashCode(T)

Returns a hash code for the specified object.

public int GetHashCode(T obj)

Parameters

obj T

The object for which a hash code is to be returned.

Returns

int

A hash code for the specified object.

Exceptions

ArgumentNullException

The type of obj is a reference type and obj is null.