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); }
/// <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); }
public void Save(string file) { Serialized.Save(this, file); }