Equals Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Namespace: System.Data
Assembly:   System.Data.Entity (in System.Data.Entity.dll)

public bool Equals (
	DataRow leftRow,
	DataRow rightRow
Not applicable.



The first DataRow object to compare.


The second DataRow object to compare.

Return Value


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


One or both of the source DataRow objects are null.

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(T, T) method.

Windows Server 2003, Windows XP SP2, Windows Vista

The .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.5