Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals() [2/2]

bool System.Data.DataRowComparer< TRow >.Equals ( TRow? leftRow,
TRow? rightRow )
inline

Definition at line 118 of file DataRowComparer.cs.

119 {
120 if (leftRow == rightRow)
121 {
122 return true;
123 }
124 if (leftRow == null || rightRow == null)
125 {
126 return false;
127 }
128 if (leftRow.RowState == DataRowState.Deleted || rightRow.RowState == DataRowState.Deleted)
129 {
131 }
132 int count = leftRow.Table.Columns.Count;
133 if (count != rightRow.Table.Columns.Count)
134 {
135 return false;
136 }
137 for (int i = 0; i < count; i++)
138 {
139 if (!DataRowComparer.AreEqual(leftRow[i], rightRow[i]))
140 {
141 return false;
142 }
143 }
144 return true;
145 }
static InvalidOperationException InvalidOperation(string message)
static string DataSetLinq_CannotCompareDeletedRow
Definition SR.cs:932
Definition SR.cs:7

References System.Data.DataRowComparer< TRow >.AreEqual(), System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.SR.DataSetLinq_CannotCompareDeletedRow, and DataSetUtil.InvalidOperation().