Skip to content

Commit aec9a96

Browse files
committed
Add equality operators to ExcelReference
1 parent deadae8 commit aec9a96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/ExcelDna.Integration/ExcelReference.cs

+3
Original file line numberDiff line numberDiff line change
@@ -313,5 +313,8 @@ public override string ToString()
313313
{
314314
return string.Format("({0},{1} : {2},{3}) - {4}", RowFirst, ColumnFirst, RowLast, ColumnLast, SheetId);
315315
}
316+
317+
public static bool operator ==(ExcelReference left, ExcelReference right) { return left.Equals(right); }
318+
public static bool operator !=(ExcelReference left, ExcelReference right) { return !left.Equals(right); }
316319
}
317320
}

0 commit comments

Comments
 (0)