public void PointerVars(ref List<string> strings, Bottle bottle) { strings = new List<string>(); strings.Add("Paksa"); strings.Add("Rolandas"); bottle.Drink(100); }
public void Drink(Bottle bottleToDrinkFrom, int amount) { Console.Out.WriteLine("I'm {0}, and im about to drink {1}", Name, bottleToDrinkFrom.DrinkName); if (bottleToDrinkFrom.Drink(amount)) { _liquidDrinked += amount; } }