protobuf 反序列化後如何轉list
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
推
03/06 12:11,
6年前
, 1F
03/06 12:11, 1F
→
03/06 16:04,
6年前
, 2F
03/06 16:04, 2F
※ 編輯: tree581 (223.104.5.169), 03/09/2019 20:09:33
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章