Exemplo n.º 1
0
 /// <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);
     }
 }
Exemplo n.º 2
0
 /// <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);
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(Abbreviation.GetHashCode());
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() + 13 * Abbreviation.GetHashCode());
 }