Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Supermarket
Inventory
Contains
Supermarket.Inventory.Contains C# (CSharp) Метод
Документация по классу Inventory
Показать файл
Открыть проект
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); }
Inventory
Add
CalculateTotal
Contains
Get
Inventory
Price
Quantity