I have a list i want to get the sum of this list & want to show it in a label
my list is
List<double> Amount = new List<double>();
& it's filled up with integer values i need to get the sum of it.
i don't really know how to add values. tried some properties like compute, sum but it gives syntax error since it do not work with this.
here's how i am getting values in it
double sales = double.Parse(split_values[1]);
listBox2.Items.Add(sales);
Amount.Add(sales);
& i need to show the output in a label
I also need to get top 3 values from this list but till yet i was unable to do so. .net Framework is 2.0