Exemplo n.º 1
0
        public void load()
        {
            string jsonFilePath = @"appinfo.json";

            using (var ms = new FileStream(jsonFilePath, FileMode.Open))
            {
                var serializer = new DataContractJsonSerializer(typeof(MyAppSetting));
                _setting = (MyAppSetting)serializer.ReadObject(ms);
            }
        }
Exemplo n.º 2
0
 public AppManage()
 {
     _setting = new MyAppSetting();
     load();
 }