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

            hash = 59 * hash + (ItemCd != null ? ItemCd.GetHashCode() : 0);
            return(hash);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            var other = (CartItem)obj;

            return((ItemCd == null) ? (other.ItemCd == null) : ItemCd.Equals(other.ItemCd));
        }