作者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://www.ptt.cc/bbs/C_Sharp/M.1551783099.A.2CC.html
推 totte: string.split03/06 12:11
→ tree581: 他是prototype,没有.split能用03/06 16:04
※ 編輯: tree581 (223.104.5.169), 03/09/2019 20:09:33