Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


DataRowComparer<TRow>.Equals(TRow, TRow) Method

Definition

Compares two DataRow objects by using a column-by-column, value-based comparison.

C#
public bool Equals(TRow? leftRow, TRow? rightRow);
C#
public bool Equals(TRow leftRow, TRow rightRow);

Parameters

leftRow
TRow

The first DataRow object to compare.

rightRow
TRow

The second DataRow object to compare.

Returns

true if the two DataRow objects have ordered sets of column values that are equal; otherwise, false.

Implements

Exceptions

One or both of the source DataRow objects are null.

Remarks

The schema of the two DataRow objects is not checked. If both DataRow objects have exactly the same ordered set of column values, they are considered equal.

Only the current values of the DataRow objects are checked. The state of the DataRow objects is not checked.

The Equals method is the value-based comparison implementation of the Equals method.

Applies to

Termék Verziók
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1

See also