Click or drag to resize

DelegateEqualityComparerT Class

IEqualityComparerT implementation using a delegate function to compare the values.
Inheritance Hierarchy
SystemObject
  TomsToolbox.EssentialsDelegateEqualityComparerT

Namespace: TomsToolbox.Essentials
Assembly: TomsToolbox.Essentials (in TomsToolbox.Essentials.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class DelegateEqualityComparer<T> : IEqualityComparer<T>

Type Parameters

T
The type of objects to compare.

The DelegateEqualityComparerT type exposes the following members.

Constructors
 NameDescription
Public methodDelegateEqualityComparerT Initializes a new instance of the DelegateEqualityComparerT class, using Equals(Object, Object) and GetHashCode
Public methodDelegateEqualityComparerT(FuncT, Object) Initializes a new instance of the DelegateEqualityComparerT class.
Public methodDelegateEqualityComparerT(FuncT, T, Boolean, FuncT, Int32) Initializes a new instance of the DelegateEqualityComparerT class.
Public methodDelegateEqualityComparerT(FuncT, Object, FuncObject, Object, Boolean, FuncObject, Int32) Initializes a new instance of the DelegateEqualityComparerT class.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified objects are equal.
Public methodGetHashCodeReturns a hash code for the specified object.
Top
Extension Methods
 NameDescription
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Top
See Also