作者tree581 (talltree)
看板C_Sharp
标题protobuf 反序列化後如何转list
时间Tue Mar 5 18:51:37 2019
protoMessage text= protoMessage.Parser.parseform(byteStr)
//protomessage 是protobuf 依照定义proto所编出来的cs
Text 如何转list?
爬官网好像是listvalue?但不知怎用,还是有其他方法?
另若要把以上包在method里,我该如何定Method type 後return?
list<protoMessage> mehod(){
//proto object to list
return listStr;
}
以上请教
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 223.104.213.44
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1551783099.A.2CC.html
1F:推 totte: string.split03/06 12:11
2F:→ tree581: 他是prototype,没有.split能用03/06 16:04
※ 编辑: tree581 (223.104.5.169), 03/09/2019 20:09:33