public void Update(StockSubject sub) { foreach (var port in portfolios) { foreach (Stock stonk in port.StockList) { Console.WriteLine($"{stonk.Name}: {stonk.Value}"); } } }
public void Update(StockSubject su) { CalculateTotalValue(); Console.WriteLine("Current portfolio value: " + TotalValue); }