Supermarket.Inventory.Contains C# (CSharp) Méthode

Contains() public méthode

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