private List<EstCol> GenerateColData1(System.Collections.ObjectModel.ObservableCollection<string> list) { string[] fldValues; List<EstCol> estReports = new List<EstCol>(); for (var i = 0; i < list.Count; i++) { fldValues = list[i].Split('#'); EstCol estReport = new EstCol(); estReport.Nm = fldValues[0]; estReport.Amount = double.Parse(fldValues[1]) / 10000; estReport.Month =int.Parse(fldValues[2]); estReports.Add(estReport); } return estReports; }
private IEnumerable<EstCol> GenerateCol1Data(System.Collections.ObjectModel.ObservableCollection<string> list) { string[] fldValues; for (var i = 0; i < list.Count; i++) { fldValues = list[i].Split('#'); EstCol estReport = new EstCol(); estReport.Nm = fldValues[0]; estReport.Amount = (double.Parse(fldValues[1]) /10000); estReport.Month =int.Parse(fldValues[2]); yield return estReport; } }