/// <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 (Uuid != null) { hashCode = hashCode * 59 + Uuid.GetHashCode(); } if (Username != null) { hashCode = hashCode * 59 + Username.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Surname != null) { hashCode = hashCode * 59 + Surname.GetHashCode(); } if (Email != null) { hashCode = hashCode * 59 + Email.GetHashCode(); } if (PhoneNumber != null) { hashCode = hashCode * 59 + PhoneNumber.GetHashCode(); } if (Password != null) { hashCode = hashCode * 59 + Password.GetHashCode(); } if (HashedPassword != null) { hashCode = hashCode * 59 + HashedPassword.GetHashCode(); } hashCode = hashCode * 59 + IsDeleted.GetHashCode(); if (DeletedTime != null) { hashCode = hashCode * 59 + DeletedTime.GetHashCode(); } if (Avatar != null) { hashCode = hashCode * 59 + Avatar.GetHashCode(); } if (LdapAuthenticationMode != null) { hashCode = hashCode * 59 + LdapAuthenticationMode.GetHashCode(); } if (Roles != null) { hashCode = hashCode * 59 + Roles.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashResult = Name == null ? 0 : Name.GetHashCode(); hashResult ^= IsVisible.GetHashCode(); hashResult ^= IsSystem.GetHashCode(); hashResult ^= IsDeleted.GetHashCode(); return(hashResult); }
public override int GetHashCode() { int hash = 17; hash = hash * 31 + (Id == null ? 0 : Id.GetHashCode()); hash = hash * 31 + (Author == null ? 0 : Author.GetHashCode()); hash = hash * 31 + (Kind == null ? 0 : Kind.GetHashCode()); hash = hash * 31 + (CreateDate == null ? 0 : CreateDate.GetHashCode()); hash = hash * 31 + IsDeleted.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int hashCode = (NodeRef != null ? NodeRef.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode(); hashCode = (hashCode * 397) ^ CreationTime.GetHashCode(); hashCode = (hashCode * 397) ^ ModificationTime.GetHashCode(); hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = Id.GetHashCode(); result = (result * 397) ^ (IsDeleted.GetHashCode()); result = (result * 397) ^ (Title != null ? Title.GetHashCode() : 0); result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0); result = (result * 397) ^ (TotalHours.HasValue ? TotalHours.Value : 0).GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { int result = (ProviderKey != null ? ProviderKey.GetHashCode() : 0); result = (result * 397) ^ IsDeleted.GetHashCode(); result = (result * 397) ^ Id.GetHashCode(); result = (result * 397) ^ (Fields != null ? Fields.GetHashCode() : 0); result = (result * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); result = (result * 397) ^ (Notes != null ? Notes.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = (Payload != null ? Payload.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Sender != null ? Sender.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PersistenceId != null ? PersistenceId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode(); hashCode = (hashCode * 397) ^ SequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ (Manifest != null ? Manifest.GetHashCode() : 0); return(hashCode); } }
/// <inheritdoc/> public override int GetHashCode() { unchecked { var hashCode = (Payload != null ? Payload.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Manifest != null ? Manifest.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PersistenceId != null ? PersistenceId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SequenceNr.GetHashCode(); hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode(); hashCode = (hashCode * 397) ^ (Sender != null ? Sender.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WriterGuid != null ? WriterGuid.GetHashCode() : 0); // timestamp not included in equals for backwards compatibility return(hashCode); } }
public override int GetHashCode() { int hashCode = -1814270990; if (Type != null) { hashCode += Type.GetHashCode(); } if (Id != null) { hashCode += Id.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (Version != null) { hashCode += Version.GetHashCode(); } if (IsDeleted != null) { hashCode += IsDeleted.GetHashCode(); } if (CustomAttributeValues != null) { hashCode += CustomAttributeValues.GetHashCode(); } if (CatalogV1Ids != null) { hashCode += CatalogV1Ids.GetHashCode(); } if (PresentAtAllLocations != null) { hashCode += PresentAtAllLocations.GetHashCode(); } if (PresentAtLocationIds != null) { hashCode += PresentAtLocationIds.GetHashCode(); } if (AbsentAtLocationIds != null) { hashCode += AbsentAtLocationIds.GetHashCode(); } if (ImageId != null) { hashCode += ImageId.GetHashCode(); } if (ItemData != null) { hashCode += ItemData.GetHashCode(); } if (CategoryData != null) { hashCode += CategoryData.GetHashCode(); } if (ItemVariationData != null) { hashCode += ItemVariationData.GetHashCode(); } if (TaxData != null) { hashCode += TaxData.GetHashCode(); } if (DiscountData != null) { hashCode += DiscountData.GetHashCode(); } if (ModifierListData != null) { hashCode += ModifierListData.GetHashCode(); } if (ModifierData != null) { hashCode += ModifierData.GetHashCode(); } if (TimePeriodData != null) { hashCode += TimePeriodData.GetHashCode(); } if (ProductSetData != null) { hashCode += ProductSetData.GetHashCode(); } if (PricingRuleData != null) { hashCode += PricingRuleData.GetHashCode(); } if (ImageData != null) { hashCode += ImageData.GetHashCode(); } if (MeasurementUnitData != null) { hashCode += MeasurementUnitData.GetHashCode(); } if (SubscriptionPlanData != null) { hashCode += SubscriptionPlanData.GetHashCode(); } if (ItemOptionData != null) { hashCode += ItemOptionData.GetHashCode(); } if (ItemOptionValueData != null) { hashCode += ItemOptionValueData.GetHashCode(); } if (CustomAttributeDefinitionData != null) { hashCode += CustomAttributeDefinitionData.GetHashCode(); } if (QuickAmountsSettingsData != null) { hashCode += QuickAmountsSettingsData.GetHashCode(); } return(hashCode); }