コード例 #1
0
        private void CountriesByLanguage()
        {
            //prompt the user for the language
            string name = CLIHelper.GetString("Name of the language:");
            //call the dao to get the countries
            List <Country> countries = countryDAO.GetCountriesSpeakingLanguage(name);

            //print the countries
            foreach (Country c in countries)
            {
                Console.WriteLine(c);
            }
        }