public override int GetHashCode() { unchecked { return((Item1.GetHashCode() * 397) ^ Item2.GetHashCode()); } }
public override int GetHashCode() { int h1 = Item1.GetHashCode(); int h2 = Item2.GetHashCode(); return(((h1 << 5) + h1) ^ h2); }
public override int GetHashCode() { var hash = 17; hash = hash * 23 + (Item1 == null ? 0 : Item1.GetHashCode()); hash = hash * 23 + (Item2 == null ? 0 : Item2.GetHashCode()); return(hash); }
public override int GetHashCode() { int hash = 17; hash = hash * 23 + Item1.GetHashCode(); hash = hash * 23 + Item2.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { return(((Item1?.GetHashCode() ?? 0) * 397) ^ (Item2?.GetHashCode() ?? 0)); } }
public override int GetHashCode() { unchecked { int hashCode = (RootPath != null ? RootPath.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Item1 != null ? Item1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Item2 != null ? Item2.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hash = 17; hash = hash * 23 + (Item1 == null ? 0 : Item1.GetHashCode()); hash = hash * 23 + (Item2 == null ? 0 : Item2.GetHashCode()); hash = hash * 23 + (Item3 == null ? 0 : Item3.GetHashCode()); hash = hash * 23 + (Item4 == null ? 0 : Item4.GetHashCode()); return(hash); } }
public override int GetHashCode() { var hash = 0; if (Item1 != null) { hash ^= Item1.GetHashCode(); } if (Item2 != null) { hash ^= Item2.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { int hash = 233; if (!EqualityComparer <T> .Default.Equals(Item1, default(T))) { hash = hash * 23 + Item1.GetHashCode(); } if (!EqualityComparer <U> .Default.Equals(Item2, default(U))) { hash = hash * 29 + Item2.GetHashCode(); } return(hash); } }
/// <summary> /// Hash code override /// </summary> /// <returns></returns> public override int GetHashCode() { return((Item1?.GetHashCode() ?? 0) ^ (Item2?.GetHashCode() ?? 0)); }
public override int GetHashCode() { return(((Item1 == null) ? 0x14AB32BC : Item1.GetHashCode()) ^ ((Item2 == null) ? 0x65BC32DE : Item2.GetHashCode())); }
/// <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() { return((Item1 == null ? 1 : Item1.GetHashCode()) ^ (Item2 == null ? 2 : Item2.GetHashCode())); }
public override int GetHashCode() => Item1.GetHashCode() * Item2.GetHashCode(); // is communitative since it is unordered (maybe there is a better way)?
public override int GetHashCode() { return((Item1 != null ? Item1.GetHashCode() : 0) ^ (Item2 != null ? Item2.GetHashCode() : 0)); }
public override int GetHashCode() { return(HashCodeCombiner.Combine(Item1.GetHashCode(), Item2.GetHashCode(), Item3.GetHashCode(), Item4.GetHashCode())); }
public override int GetHashCode() { return(Item1.GetHashCode() ^ Item2.GetHashCode()); }
public override Int32 GetHashCode() { return(Item1.GetHashCode() + 1 ^ Item2.GetHashCode()); }
public int CompareTo(Tuple <T1, T2> other) { // A bit stupid! return(Item1.GetHashCode().CompareTo(other.Item1.GetHashCode())); }
public override int GetHashCode() { return(CombineHashCodes(Item1.GetHashCode(), Item2.GetHashCode())); }
public override int GetHashCode() { int hash = 1; if (ItemSetId != 0UL) { hash ^= ItemSetId.GetHashCode(); } if (Item1 != 0L) { hash ^= Item1.GetHashCode(); } if (Item1Quantity != 0) { hash ^= Item1Quantity.GetHashCode(); } if (Item2 != 0L) { hash ^= Item2.GetHashCode(); } if (Item2Quantity != 0) { hash ^= Item2Quantity.GetHashCode(); } if (Item3 != 0L) { hash ^= Item3.GetHashCode(); } if (Item3Quantity != 0) { hash ^= Item3Quantity.GetHashCode(); } if (Item4 != 0L) { hash ^= Item4.GetHashCode(); } if (Item4Quantity != 0) { hash ^= Item4Quantity.GetHashCode(); } if (Item5 != 0L) { hash ^= Item5.GetHashCode(); } if (Item5Quantity != 0) { hash ^= Item5Quantity.GetHashCode(); } if (Item6 != 0L) { hash ^= Item6.GetHashCode(); } if (Item6Quantity != 0) { hash ^= Item6Quantity.GetHashCode(); } if (Item7 != 0L) { hash ^= Item7.GetHashCode(); } if (Item7Quantity != 0) { hash ^= Item7Quantity.GetHashCode(); } if (Item8 != 0L) { hash ^= Item8.GetHashCode(); } if (Item8Quantity != 0) { hash ^= Item8Quantity.GetHashCode(); } if (Item9 != 0L) { hash ^= Item9.GetHashCode(); } if (Item9Quantity != 0) { hash ^= Item9Quantity.GetHashCode(); } if (Item10 != 0L) { hash ^= Item10.GetHashCode(); } if (Item10Quantity != 0) { hash ^= Item10Quantity.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() => Item1.GetHashCode() + Item2.GetHashCode();