public Dictionary <double, double> GetAmounts() { return(list.ToDictionary(container => container.Amount, container => container.Quantity)); }