示例#1
0
 public override int GetHashCode()
 {
     return(Ordinal.GetHashCode());
 }
 public override int GetHashCode(string obj)
 {
     return(Ordinal.GetHashCode(obj));
 }
示例#3
0
 public override int GetHashCode()
 {
     return(Hash.Combine(ContainingSymbol, Ordinal.GetHashCode()));
 }
示例#4
0
 /// <inheritdoc />
 public override int GetHashCode() => Ordinal.GetHashCode();
示例#5
0
        public override int GetHashCode()
        {
            int hashCode = -1155387790;

            if (ItemId != null)
            {
                hashCode += ItemId.GetHashCode();
            }

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (Sku != null)
            {
                hashCode += Sku.GetHashCode();
            }

            if (Upc != null)
            {
                hashCode += Upc.GetHashCode();
            }

            if (Ordinal != null)
            {
                hashCode += Ordinal.GetHashCode();
            }

            if (PricingType != null)
            {
                hashCode += PricingType.GetHashCode();
            }

            if (PriceMoney != null)
            {
                hashCode += PriceMoney.GetHashCode();
            }

            if (LocationOverrides != null)
            {
                hashCode += LocationOverrides.GetHashCode();
            }

            if (TrackInventory != null)
            {
                hashCode += TrackInventory.GetHashCode();
            }

            if (InventoryAlertType != null)
            {
                hashCode += InventoryAlertType.GetHashCode();
            }

            if (InventoryAlertThreshold != null)
            {
                hashCode += InventoryAlertThreshold.GetHashCode();
            }

            if (UserData != null)
            {
                hashCode += UserData.GetHashCode();
            }

            if (ServiceDuration != null)
            {
                hashCode += ServiceDuration.GetHashCode();
            }

            if (AvailableForBooking != null)
            {
                hashCode += AvailableForBooking.GetHashCode();
            }

            if (ItemOptionValues != null)
            {
                hashCode += ItemOptionValues.GetHashCode();
            }

            if (MeasurementUnitId != null)
            {
                hashCode += MeasurementUnitId.GetHashCode();
            }

            if (TeamMemberIds != null)
            {
                hashCode += TeamMemberIds.GetHashCode();
            }

            return(hashCode);
        }
示例#6
0
 public override int GetHashCode()
 {
     return(unchecked (Name.GetHashCode() * 17 + Ordinal.GetHashCode()));
 }