Example #1
0
        //从本地文件读取数据
        public static async Task <bool> LoadFromFile()
        {
            _data = await StorageFileHelper.ReadAsync <string>("HeroesAttrCache.dota");

            return(_data != null);
        }
Example #2
0
 //保存英雄属性数据到本地
 public static async void SaveToFile()
 {
     await StorageFileHelper.WriteAsync(_data, "HeroesAttrCache.dota");
 }