Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Location.GetHashCode();
         result = (result * 397) ^ Value.GetHashCode();
         result = (result * 397) ^ IsWrite.GetHashCode();
         return(result);
     }
 }
Beispiel #2
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
     {
         var hashCode = Address.GetHashCode();
         hashCode = (hashCode * 397) ^ Length.GetHashCode();
         hashCode = (hashCode * 397) ^ IsRead.GetHashCode();
         hashCode = (hashCode * 397) ^ IsWrite.GetHashCode();
         return(hashCode);
     }
 }