public override int GetHashCode() { var hash = 5; hash = 59 * hash + (ItemCd != null ? ItemCd.GetHashCode() : 0); return(hash); }
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)); }