Table of Contents

Class FuncEqualityComparer<T>

Namespace
ChartTools.Extensions
Assembly
ChartTools.dll

Delegate-based IEqualityComparer<T>

public class FuncEqualityComparer<T> : IEqualityComparer<T>

Type Parameters

T
Inheritance
FuncEqualityComparer<T>
Implements
Inherited Members
Extension Methods

Constructors

FuncEqualityComparer(EqualityComparison<T?>)

Creates a new instance.

public FuncEqualityComparer(EqualityComparison<T?> comparison)

Parameters

comparison EqualityComparison<T>

Method used to compare two objects

Properties

Comparison

Method used to compare two objects

public EqualityComparison<T?> Comparison { get; }

Property Value

EqualityComparison<T>

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.