Ejemplo n.º 1
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.RowCount.GetHashCode(), 11)
            ^ BitShifter.ShiftAndWrap(this.ColumnCount.GetHashCode(), 7)
            ^ BitShifter.ShiftAndWrap(this.StandardReturnObject?.GetHashCode() ?? 1, 3)
            ^ this.Rows.GetHashCode());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.Identifier.GetHashCode(), 11)
            ^ BitShifter.ShiftAndWrap(this.Postcondition?.GetHashCode() ?? 0, 7)
            ^ BitShifter.ShiftAndWrap(this.Nodes?.GetHashCode() ?? 0, 3)
            ^ this.ReferenceSteps?.GetHashCode() ?? 0);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Serves as the default hash function.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(BitShifter.ShiftAndWrap(this.content?.GetHashCode() ?? 1, 3)
            ^ this.ColumnIndex.GetHashCode());
 }