C# Класс Marmalade_Global.Product

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IngredientList List

Открытые методы

Метод Описание
ListPrice ( ) : double

Calculates the price for the ingredients used in the product.

Product ( int amountOfIngredient, string productName, string variety, double size, string containerType, double productPrice, Ingredient IngredientOne, Ingredient IngredientTwo ) : System

Full-args constructor, that adds the ingredients given to the ingredient list.

ToString ( ) : string

Описание методов

ListPrice() публичный Метод

Calculates the price for the ingredients used in the product.
public ListPrice ( ) : double
Результат double

Product() публичный Метод

Full-args constructor, that adds the ingredients given to the ingredient list.
public Product ( int amountOfIngredient, string productName, string variety, double size, string containerType, double productPrice, Ingredient IngredientOne, Ingredient IngredientTwo ) : System
amountOfIngredient int
productName string
variety string
size double
containerType string
productPrice double
IngredientOne Ingredient
IngredientTwo Ingredient
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

IngredientList публичное свойство

A list of ingredients used in this product
public List IngredientList
Результат List