} // CheckAvailableFunds private void ProcessRow(SafeReader sr) { RowType nRowType; string sRowType = sr["RowType"]; if (!Enum.TryParse(sRowType, out nRowType)) { Log.Alert("Unsupported row type encountered: '{0}'.", sRowType); return; } // if switch (nRowType) { case RowType.MetaData: sr.Fill(MetaData); break; case RowType.LatePayment: LatePayments.Add(sr.Fill <Payment>()); break; case RowType.Marketplace: NewMarketplaces.Add(sr.Fill <Marketplace>()); break; default: throw new ArgumentOutOfRangeException(); } // switch } // ProcessRow
} // constructor public void AddLatePayment(Payment oPayment) { LatePayments.Add(oPayment); } // AddLatePayment