Click or drag to resize

DelegateEqualityComparerT Class

Inheritance Hierarchy
SystemObject
  TomsToolbox.CoreDelegateEqualityComparerT

Namespace:  TomsToolbox.Core
Assembly:  TomsToolbox.Core (in TomsToolbox.Core.dll) Version: 1.0.70.0
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 methodEquals
Determines whether the specified objects are equal.
Public methodGetHashCode
Returns 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.

[CanBeNull]

(Defined by ObjectExtensions.)
Top
See Also