message Preson
{
int32 Id = 1;
string name = 2;
string phone = 3;
}
老师请问,向上面这种.porto的文件怎么直接生成这样的CS代码
[ProtoContract]
class Preson
{
[ProtoMember(1)]
public int Id { get; set; }
[ProtoMember(2)]
public string name { get; set; }
[ProtoMember(3)]
public string phone { get; set; }
}
同学你好,可以参考一下:
https://zhidao.baidu.com/question/1578218773671004580.html
http://blog.sina.com.cn/s/blog_8f31d1fb0102x3mn.html
https://www.cnblogs.com/dangzhensheng/p/11535679.html
https://my.oschina.net/cndgz/blog/63586?p=1