示例#1
0
文件: Stat.cs 项目: opsxolc/Analyzer
        public Stat(string path, bool withText = false)
        {
            Dir = Path.GetDirectoryName(path);
            StreamReader reader = new StreamReader(path);
            string       json   = reader.ReadToEnd();

            reader.Close();
            Info     = UseStatJson.GetStat(json);
            Interval = new Interval(Info.inter, Dir, withText);
        }
示例#2
0
文件: Stat.cs 项目: opsxolc/Analyzer
 public void ChangeJson(string json, bool withText = false)
 {
     Info     = UseStatJson.GetStat(json);
     Interval = new Interval(Info.inter, Dir, withText);
 }
示例#3
0
文件: Stat.cs 项目: opsxolc/Analyzer
 public Stat(string json, string dir, bool withText = false)
 {
     Dir      = dir;
     Info     = UseStatJson.GetStat(json);
     Interval = new Interval(Info.inter, dir, withText);
 }
示例#4
0
 public static string GetJson(StatJson stat) => JsonConvert.SerializeObject(stat);