Example #1
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         return((Byte1.GetHashCode() * 397) ^ Byte2.GetHashCode());
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Byte1.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte2.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte3.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte4.GetHashCode();
         return(hashCode);
     }
 }