List<TaxRecord> taxrecords = new List<TaxRecord>() { new TaxRecord(53664,"John Smith","34 Johns St Sydney",true,6364664.99), new TaxRecord(53667,"Steve Henry","38 Victoria Rd Bulli",false,900.88), new TaxRecord(53656,"James Tee","65 True St Woonona",true,15678.00) }; foreach (TaxRecord t in taxrecords) { t.Print(); }
double total = taxrecords.Sum(item => item.Amount);
double total = 0; foreach (TaxRecord t in taxrecords) { total += t.income; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)