Table of Contents

Class GenericEqualityComp<T>

Namespace
Tlabs.Misc
Assembly
Tlabs.Core.dll

Generic impl. of a IEqualityComparer<T>

public class GenericEqualityComp<T> : IEqualityComparer<T>

Type Parameters

T
Inheritance
GenericEqualityComp<T>
Implements
Inherited Members
Extension Methods

Constructors

GenericEqualityComp(Func<T?, T?, bool>)

Ctor from isEqual

public GenericEqualityComp(Func<T?, T?, bool> isEqual)

Parameters

isEqual Func<T, T, bool>

GenericEqualityComp(Func<T?, T?, bool>, Func<T, int>)

Ctor from isEqual and hash

public GenericEqualityComp(Func<T?, T?, bool> isEqual, Func<T, int> hash)

Parameters

isEqual Func<T, T, bool>
hash Func<T, int>

Methods

Equals(T?, T?)

public bool Equals(T? x, T? y)

Parameters

x T
y T

Returns

bool

GetHashCode(T)

public int GetHashCode(T obj)

Parameters

obj T

Returns

int