static void Main(string[] args) { CustomerClass oCustomer = new CustomerClass(); oCustomer.Insert(); CountryMaster oCountry = new CountryMaster(); oCountry.Insert(); oCountry.Insert(); //I have called the insert 3 times, 1 for CustomerClass and 2 for CountryMaster Console.WriteLine(CommonRoutines.HowManyTimes.ToString()); foreach (string str in CommonRoutines.OWeeks) { Console.WriteLine(str); } Console.ReadLine(); }
static void Main(string[] args) { CountryMaster obj1 = new CountryMaster(); obj1.Insert(); CustomerClass obj2 = new CustomerClass(); obj2.Insert(); Console.WriteLine(CommonRoutine.count.ToString()); Console.ReadLine(); }