Beispiel #1
0
        public override int GetHashCode()
        {
            if (IsNull)
            {
                return(0);
            }

            return(TableId.GetHashCode() ^ RowNumber.GetHashCode());
        }
        /// <summary> Serves as the default hash function. </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 101;

                hash = hash * 103 + ColumnNumber.GetHashCode();
                hash = hash * 107 + RowNumber.GetHashCode();
                hash = hash * 109 + (FolderIndex.HasValue ? FolderIndex.Value.GetHashCode() : -1.GetHashCode());

                return(hash);
            }
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(RowNumber.GetHashCode() + SeatNumber.GetHashCode());
 }