コード例 #1
0
        public void AddItem(Product product)
        {
            _products.Add(product);

            if (product is USProduct)
            {
                DisplayUS(product);
            }

            if (product is UKProduct)
            {
                DisplayUK(product);
            }
        }
コード例 #2
0
 private void DisplayUS(Product product)
 {
     // Get the product price and format it according to the location
 }