Supermarket.Inventory.Contains C# (CSharp) 메소드

Contains() 공개 메소드

Checks if this inventory contains a product by the given name.
public Contains ( string product ) : bool
product string The name of the product to check for.
리턴 bool
        public bool Contains(string product)
        {
            return items.ContainsKey(product);
        }