protected void SaveConfigPackage(FCConfigPackage configPkg) { string json = JsonConvert.SerializeObject(configPkg, Formatting.Indented); File.WriteAllText(@"FileCopyConfig.json", json, Encoding.UTF8); }
protected void LoadConfigPackage(out FCConfigPackage configPkg) { string json = File.ReadAllText(@"FileCopyConfig.json", Encoding.UTF8); configPkg = JsonConvert.DeserializeObject <FCConfigPackage>(json); }