IAlternateEqualityComparer<TAlternate,T>.Equals(TAlternate, T) 方法

定义

确定指定的 alternate 是否等于指定的 other

public bool Equals (TAlternate alternate, T other);
abstract member Equals : 'Alternate * 'T -> bool
Public Function Equals (alternate As TAlternate, other As T) As Boolean

参数

alternate
TAlternate

要比较的类型 TAlternate 实例。

other
T

要比较的类型 T 实例。

返回

如果指定的实例相等,则 true;否则,false

适用于