Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Supermarket
Inventory
Price
Supermarket.Inventory.Price C# (CSharp) Method
Inventory Class Documentation
Show file
Open project: Clarksj4/Theme-Supermarket-Tycoon-World
Price()
public
method
Checks the price per unit for a product by the given name. The Raises an exception if this inventory does not contain the given product.
public
Price
(
string
product
) :
float
product
string
The name of the product to get a price per unit for
return
float
public float Price(string product) { return items[product].Price; }
Inventory
Add
CalculateTotal
Contains
Get
Inventory
Price
Quantity