NetModel

作者: 醉酒青牛_fa4e | 来源:发表于2018-03-26 23:57 被阅读0次

using System;
using ProtoBuf;

//添加特性,表示可以被ProtoBuf工具序列化
[ProtoContract]
public class NetModel {
//添加特性,表示该字段可以被序列化,1可以理解为下标
[ProtoMember(1)]
public string senderIp;
[ProtoMember(2)]
public string content;
[ProtoMember(3)]
public string time;
}

相关文章

  • NetModel

    using System;using ProtoBuf; //添加特性,表示可以被ProtoBuf工具序列化[Pr...

网友评论

      本文标题:NetModel

      本文链接:https://www.haomeiwen.com/subject/pxndcftx.html