/// <summary> /// Main method. /// </summary> /// <param name="args"></param> static void Main(string[] args) { CustomerReader customerReader = new CustomerReader(); //Invoking methods to read data from various files (.csv, .xml, .json). customerReader.ReadCustomersCsv(filePath + "customers.csv"); customerReader.ReadCustomersXml(filePath + "customers.xml"); customerReader.ReadCustomersJson(filePath + "customers.json"); //Formatting the dispplay. Console.WriteLine("\n" + "Added this many customers: " + customerReader.GetCustomers().Count + "\n"); customerReader.DisplayCustomers(); Console.ReadLine(); }
static void Main(string[] args) { string filePath = "..\\..\\..\\doc\\"; CustomerReader cr = new CustomerReader(); cr.ReadCustomersCsv(filePath + "customers.csv"); cr.ReadCustomersXml(filePath + "customers.xml"); cr.ReadCustomersJson(filePath + "customers.json"); Console.WriteLine("Added this many customers: " + cr.getCustomers().Count + "\n"); cr.DisplayCustomers(); Console.ReadLine(); }