Marmalade_Global.Ingredient.Ingredient C# (CSharp) Méthode

Ingredient() public méthode

full args constructor, nothing special here.
public Ingredient ( string type, double weight, double ingredientprice ) : System
type string
weight double
ingredientprice double
Résultat System
        public Ingredient(string type, double weight, double ingredientprice)
        {
            Type = type;
            Weight = weight;
            IngredientPrice = ingredientprice;
            G3Controller.ListOfIngredients.Add(this);
        }