public static CitySingleton GetInstance() { if (singleton == null) { singleton = new CitySingleton(); } return(singleton); }
internal static void ReadAllCities() { List <City> cities = CitySingleton.GetInstance().Cities; cities.ForEach(city => Console.WriteLine(city)); }