Redigeeri

Jagamisviis:


IAlternateEqualityComparer<TAlternate,T> Interface

Definition

Implemented by an IEqualityComparer<T> to support comparing a TAlternate instance with a T instance.

generic <typename TAlternate, typename T>
public interface class IAlternateEqualityComparer
public interface IAlternateEqualityComparer<in TAlternate,T>
type IAlternateEqualityComparer<'Alternate, 'T> = interface
Public Interface IAlternateEqualityComparer(Of In TAlternate, T)

Type Parameters

TAlternate

The alternate type to compare.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
T

The type to compare.

Methods

Create(TAlternate)

Creates a T that is considered by Equals(TAlternate, T) to be equal to the specified alternate.

Equals(TAlternate, T)

Determines whether the specified alternate equals the specified other.

GetHashCode(TAlternate)

Returns a hash code for the specified alternate instance.

Applies to