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
graph BT Type-->Base0["object"] Type-.->Interface0["IEqualityComparer<object>"] Type["ConvertingEqualityComparer<T>"] class Type type-node

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