Example #1
0
        protected void SaveConfigPackage(FCConfigPackage configPkg)
        {
            string json = JsonConvert.SerializeObject(configPkg, Formatting.Indented);

            File.WriteAllText(@"FileCopyConfig.json", json, Encoding.UTF8);
        }
Example #2
0
        protected void LoadConfigPackage(out FCConfigPackage configPkg)
        {
            string json = File.ReadAllText(@"FileCopyConfig.json", Encoding.UTF8);

            configPkg = JsonConvert.DeserializeObject <FCConfigPackage>(json);
        }