예제 #1
0
 /// <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());
     }
 }
예제 #2
0
 public override int GetHashCode()
 {
     return(SheetName.GetHashCode() ^ Key.GetHashCode() ^ (ColumnIndex ?? 0).GetHashCode());
 }