/*
         * public static void Main(string[] args)
         * {
         *  WeatherForcast forcast = Weather.GetWeatherForcast();
         *
         *  Console.WriteLine(forcast.currently.summary);
         *
         *  Console.WriteLine("\nDone!");
         * }
         */
        public static void Main(string[] args)
        {
            UserData data = LeagueOfLegends.GetUserData();

            foreach (PlayerDto p in data.players)
            {
                Console.WriteLine(p);
            }


            //Console.WriteLine(data.players);
            //can't just use this line above because you are asking the application to print an object
            //the application can't just print an object - especially with multiple properties like this one (ex: name and rank)

            Console.WriteLine("\nDone!");
        }
Пример #2
0
        public static void Main(string[] args)


        {
            UserData data = LeagueOfLegends.GetUserData();

            Console.WriteLine(data.players);

            Console.WriteLine("\nDone!");

            /*
             * WeatherForcast forcast = Weather.GetWeatherForcast();
             *
             * Console.WriteLine(forcast.currently.summary);
             *
             * Console.WriteLine("\nDone!");
             *
             */
        }