Interface IValueEqualityComparer<T>
An equality comparer for value types that takes its operands by reference to avoid boxing.
public interface IValueEqualityComparer<T> where T : struct
Type Parameters
TThe value type being compared.
- Extension Methods
Methods
ValueEquals(in T, in T)
Determines whether two values are equal.
bool ValueEquals(in T x, in T y)
Parameters
xTThe first value.
yTThe second value.
Returns
- bool
truewhen the values are equal; otherwisefalse.