Ejemplo n.º 1
0
        static ConfigList GetJsonConfig()
        {
            //ConfigParam[] configParam = null;
            //string heartFlag = null;
            string config_path = @"D:\data\code\vspro\Dll\netMQ\testApp\config.json";

            JsonMethods jsonMethods = new JsonMethods();

            jsonMethods.Encoding = Encoding.UTF8;
            ConfigList configList = jsonMethods.DeserializeObject <ConfigList>(config_path, jsonMethods.Encoding);

            return(configList);
            //configParam = configList.configs;
            //heartFlag = configList.HeartFlag;
            //Console.WriteLine(heartFlag);
            //foreach (ConfigParam con in configParam)
            //{
            //    string identify = con.Identify;
            //    Console.WriteLine(identify);
            //}

            //Console.ReadLine();
        }