ConvertingEqualityComparer<T> Class
Adapts a typed equality comparer to untyped metadata by attempting to convert the metadata values to the comparer type before running the comparison. If neither type can be converted to T, the comparison fails.
Namespace
Statiq.Common
Interfaces
  • IEqualityComparer<object>
Base Types
  • object
ConvertingEqualityComparer<T>
object
IEqualityComparer<object>

Syntax

public class ConvertingEqualityComparer<T> : IEqualityComparer<object>

Type Parameters

Name Description
T The value type to convert to for comparisons.

Constructors

Methods

Name Return Value Summary
GetHashCode(object) int

Extension Methods