Supermarket.Inventory.Contains C# (CSharp) Method

Contains() public method

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.
return bool
        public bool Contains(string product)
        {
            return items.ContainsKey(product);
        }