Esempio n. 1
0
        public void Save(string file)
        {
            //SadConsole.Serializer.Save<Entity>(this, file, new System.Type[] { typeof(List<Frame>) });
            Serialized data = new Serialized(this);

            data.Save(file);
        }
Esempio n. 2
0
        /// <summary>
        ///     保存(序列化)指定路径下的配置文件
        /// </summary>
        /// <param name="t">Config配置</param>
        public static bool SaveConfig(T t = null)
        {
            if (t == null)
            {
                t = ConfigInfo;
            }
            var result = Serialized <T> .Save(t, FilePath + FileName);

            return(result);
        }
Esempio n. 3
0
 public void Save(string file)
 {
     Serialized.Save(this, file);
 }