DataRowComparer<TRow>.Equals(TRow, TRow) 方法
定义
public:
virtual bool Equals(TRow leftRow, TRow rightRow);
public bool Equals (TRow leftRow, TRow rightRow);
public bool Equals (TRow? leftRow, TRow? rightRow);
override this.Equals : 'Row * 'Row -> bool
Public Function Equals (leftRow As TRow, rightRow As TRow) As Boolean
参数
返回
如果两个 DataRow 对象具有相等的列值有序集,则为 true;否则为 false。true if the two DataRow objects have ordered sets of column values that are equal; otherwise, false.
实现
例外
注解
不检查两个对象的架构 DataRow 。The schema of the two DataRow objects is not checked. 如果两个 DataRow 对象具有相同的有序列值集,则将它们视为相等。If both DataRow objects have exactly the same ordered set of column values, they are considered equal.
仅检查对象的当前值 DataRow 。Only the current values of the DataRow objects are checked. DataRow不检查对象的状态。The state of the DataRow objects is not checked.
Equals方法是方法的基于值的比较实现 Equals 。The Equals method is the value-based comparison implementation of the Equals method.