public override int GetHashCode() { return(Commodity.GetHashCode() * Quantity); }
public OrderItem(Commodity commodity, int num) { Commodity = new Commodity(commodity.Name, commodity.Price); Quantity = num; }
public override int GetHashCode() { return(Commodity.GetHashCode() * Quantity); }
public OrderItem(Commodity commodity, int num) { Commodity = new Commodity(commodity.Name, commodity.Price); Quantity = num; }