/// <summary> /// Serves as the default hash function. /// </summary> /// <returns> /// A hash code for the current object. /// </returns> public override int GetHashCode() { unchecked { if (string.IsNullOrEmpty(SheetName)) { return(LocalAddress.GetHashCode()); } return(SheetName.GetHashCode() ^ LocalAddress.GetHashCode()); } }
public override int GetHashCode() { return(SheetName.GetHashCode() ^ Key.GetHashCode() ^ (ColumnIndex ?? 0).GetHashCode()); }