IAlternateEqualityComparer<TAlternate,T> Interface  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implemented by an IEqualityComparer<T> to support comparing a TAlternate instance with a T instance.
generic <typename TAlternate, typename T>
public interface class IAlternateEqualityComparerpublic interface IAlternateEqualityComparer<in TAlternate,T> where TAlternate : allows ref struct where T : allows ref structtype IAlternateEqualityComparer<'Alternate, 'T> = interfacePublic 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  | 
| Equals(TAlternate, T) | Determines whether the specified  | 
| GetHashCode(TAlternate) | Returns a hash code for the specified alternate instance. |