/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ Offset; result = (result * 397) ^ IsBitField.GetHashCode(); result = (result * 397) ^ BitOffset; return(result); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> public override int GetHashCode() { int result = base.GetHashCode(); result += Offset.GetHashCode(); result += IsBitField.GetHashCode(); result += BitOffset.GetHashCode(); result /= 4; return(result); }