Beispiel #1
0
        public static void parse(string mes)
        {
            FlightObject flight = JsonSerializer.Deserialize <FlightObject>(mes);

            Console.WriteLine(" --------------- Message ------------------ \n");
            Console.WriteLine(flight.toString());
            Console.WriteLine(" ------------------------------------------ \n");
        }
        public static void parse(string mes)
        {
            //parse with JSON.NET
            FlightObject flight = JsonConvert.DeserializeObject <FlightObject>(mes);

            Console.WriteLine(" --------------- Message ------------------ \n");
            Console.WriteLine(flight.toString());
            Console.WriteLine(" ------------------------------------------ \n");
        }