示例#1
0
 /// <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);
     }
 }
示例#2
0
        /// <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);
        }