/// <summary> /// Returns hash code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Abbreviation.GetHashCode(); hash = hash * 23 + Name.GetHashCode(); return(hash); } }
/// <summary> /// Hash code. /// </summary> public override int GetHashCode() { unchecked { var hashCode = Name?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (Abbreviation?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Ascent?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (LetterOffsets?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { int hashCode = -268666674; if (Name != null) { hashCode += Name.GetHashCode(); } if (Description != null) { hashCode += Description.GetHashCode(); } if (Abbreviation != null) { hashCode += Abbreviation.GetHashCode(); } if (LabelColor != null) { hashCode += LabelColor.GetHashCode(); } if (AvailableOnline != null) { hashCode += AvailableOnline.GetHashCode(); } if (AvailableForPickup != null) { hashCode += AvailableForPickup.GetHashCode(); } if (AvailableElectronically != null) { hashCode += AvailableElectronically.GetHashCode(); } if (CategoryId != null) { hashCode += CategoryId.GetHashCode(); } if (TaxIds != null) { hashCode += TaxIds.GetHashCode(); } if (ModifierListInfo != null) { hashCode += ModifierListInfo.GetHashCode(); } if (Variations != null) { hashCode += Variations.GetHashCode(); } if (ProductType != null) { hashCode += ProductType.GetHashCode(); } if (SkipModifierScreen != null) { hashCode += SkipModifierScreen.GetHashCode(); } if (ItemOptions != null) { hashCode += ItemOptions.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { return(Abbreviation.GetHashCode()); }
public override int GetHashCode() { return(Name.GetHashCode() + 13 * Abbreviation.GetHashCode()); }