Table of Contents

HasEqualityComparerImplementation Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/TypeDecoratorExtensions.cs

HasEqualityComparerImplementation(IDecorator<Type>)

Determines whether the underlying Type of the decorator implements either IEqualityComparer or IEqualityComparer<T>.

public static bool HasEqualityComparerImplementation(this IDecorator<Type> decorator)

Parameters

decorator IDecorator<Type>

The IDecorator<T> to extend.

Returns

bool

true if the underlying Type of the decorator implements either IEqualityComparer or IEqualityComparer<T>; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.