public override int GetHashCode() { int hash = 1; if (booking_ != null) { hash ^= Booking.GetHashCode(); } if (GroupName.Length != 0) { hash ^= GroupName.GetHashCode(); } if (GroupNumber.Length != 0) { hash ^= GroupNumber.GetHashCode(); } if (GroupContactName.Length != 0) { hash ^= GroupContactName.GetHashCode(); } if (GroupType != 0) { hash ^= GroupType.GetHashCode(); } if (groupProperty_ != null) { hash ^= GroupProperty.GetHashCode(); } hash ^= quantities_.GetHashCode(); return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (GroupType != 0) { hash ^= GroupType.GetHashCode(); } if (GroupNumber.Length != 0) { hash ^= GroupNumber.GetHashCode(); } if (creditLimit_ != null) { hash ^= CreditLimit.GetHashCode(); } if (Active != false) { hash ^= Active.GetHashCode(); } if (contactInfo_ != null) { hash ^= ContactInfo.GetHashCode(); } return(hash); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (GroupNames != null) { hashCode = hashCode * 59 + GroupNames.GetHashCode(); } if (GroupType != null) { hashCode = hashCode * 59 + GroupType.GetHashCode(); } if (Function != null) { hashCode = hashCode * 59 + Function.GetHashCode(); } return(hashCode); } }