/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Self != null) { hashCode = hashCode * 59 + Self.GetHashCode(); } if (First != null) { hashCode = hashCode * 59 + First.GetHashCode(); } if (Prev != null) { hashCode = hashCode * 59 + Prev.GetHashCode(); } if (Next != null) { hashCode = hashCode * 59 + Next.GetHashCode(); } if (Last != null) { hashCode = hashCode * 59 + Last.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.count) { hashcode = (hashcode * 397) + Count.GetHashCode(); } if (__isset.midItem) { hashcode = (hashcode * 397) + MidItem.GetHashCode(); } if (__isset.countFromMid) { hashcode = (hashcode * 397) + CountFromMid.GetHashCode(); } if (__isset.prev) { hashcode = (hashcode * 397) + Prev.GetHashCode(); } if (__isset.nxt) { hashcode = (hashcode * 397) + Nxt.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { unchecked { int hashCode = Length; hashCode = (hashCode * 397) ^ (Current != null ? Current.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Prev != null ? Prev.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.entries) { hashcode = (hashcode * 397) + Entries.GetHashCode(); } if (__isset.prev) { hashcode = (hashcode * 397) + Prev.GetHashCode(); } if (__isset.nxt) { hashcode = (hashcode * 397) + Nxt.GetHashCode(); } } return(hashcode); }