public override string ToString() { if (IsHidden) { return("IL" + IlOffset.ToString("X4") + " (hidden)"); } return("IL" + IlOffset.ToString("X4") + " (" + StartLine.ToString() + "-" + EndLine.ToString() + ") (" + StartCol.ToString() + "-" + EndCol.ToString() + ")"); }
public string GetReference(bool withSheetName) { if (!EndCol.Equals(string.Empty)) { if (withSheetName) { return(string.Format("'{0}'!{1}{2}:{3}{4}", SheetName, StartCol, StartRow, EndCol, EndRow)); } else { return(string.Format("{0}{1}:{2}{3}", StartCol, StartRow, EndCol, EndRow)); } } else { return(string.Format("{0}{1}", SheetName, StartCol, StartRow, EndRow, EndCol)); } }
public override int GetHashCode() { int hash = 1; if (ProtocolVersion != 0) { hash ^= ProtocolVersion.GetHashCode(); } if (MessageType != 0) { hash ^= MessageType.GetHashCode(); } if (Side != 0) { hash ^= Side.GetHashCode(); } if (StartRow != 0) { hash ^= StartRow.GetHashCode(); } if (StartCol != 0) { hash ^= StartCol.GetHashCode(); } if (EndRow != 0) { hash ^= EndRow.GetHashCode(); } if (EndCol != 0) { hash ^= EndCol.GetHashCode(); } if (GameOutcome != 0) { hash ^= GameOutcome.GetHashCode(); } return(hash); }