IAlternateEqualityComparer<TAlternate,T>.Equals(TAlternate, T) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的 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
。