摘要: (1)添加引用 (2)在将要序列化的类中引用 using ProtoBuf; 并且在类之前添加字段 [Serializable] 变量之前添加字段 ProtoMember 效果如下所示: 1 using System; 2 using ProtoBuf; 3 using System.Collect 阅读全文
posted @ 2020-04-11 17:14 CollinsLi 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 主窗口(frmEaa) 子窗口(FileOption) 子窗口代码(设定属性,用于传递数据) public partial class FileOption : Form { bool newfile = false; bool openfile = false; #region 属性 public 阅读全文
posted @ 2020-04-11 16:43 CollinsLi 阅读(346) 评论(0) 推荐(0) 编辑
摘要: // tbFilePath.Text=E:\文档\EAA\test.data string path = System.IO.Path.GetFullPath( tbFilePath.Text); // path=E:\文档\EAA\test.data string path1 = System.I 阅读全文
posted @ 2020-04-11 10:22 CollinsLi 阅读(1576) 评论(0) 推荐(0) 编辑