Esempio n. 1
0
        static void Main(string[] args)
        {
            HelperClasses helpercls       = new HelperClasses();
            var           jsonhorsePrices = helpercls.ConvertJson();
            var           xmlhorsePrices  = helpercls.ConvertXml();

            foreach (var horse in jsonhorsePrices)
            {
                Console.WriteLine("JsonHorsePrice = {0} JsonHorseName = {1}", horse.HorsePrice, horse.HorseName);
            }
            foreach (var horse in xmlhorsePrices)
            {
                Console.WriteLine("xmlHorsePrice = {0} xmlHorseName = {1}", horse.HorsePrice, horse.HorseName);
            }
            Console.Read();
        }