Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SKU.Length != 0)
            {
                hash ^= SKU.GetHashCode();
            }
            if (Timestamp != 0UL)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (Quantity != 0)
            {
                hash ^= Quantity.GetHashCode();
            }
            if (ActivityType != 0)
            {
                hash ^= ActivityType.GetHashCode();
            }
            if (ActivityID.Length != 0)
            {
                hash ^= ActivityID.GetHashCode();
            }
            if (OrderID.Length != 0)
            {
                hash ^= OrderID.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 352033288;

            hashCode = hashCode * -1521134295 + Description.GetHashCode();
            hashCode = hashCode * -1521134295 + SKU.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = RateID;
         hashCode = (hashCode * 397) ^ Amount.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SKU != null ? SKU.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Archived.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (WastedStock?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (StockPerSKU?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (SKU?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (WastePercentage?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ItemDescription?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (DateFormatted?.GetHashCode() ?? 0);
            return(hashCode);
        }
Ejemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (SKU.Length != 0)
            {
                hash ^= SKU.GetHashCode();
            }
            if (UnitPrice != 0)
            {
                hash ^= UnitPrice.GetHashCode();
            }
            if (Quantity != 0)
            {
                hash ^= Quantity.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(SKU.GetHashCode());
 }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     return((SKU == null) ? 0 : SKU.GetHashCode());
 }