protobuf 反序列化後如何轉list

看板C_Sharp作者 (talltree)時間5年前 (2019/03/05 18:51), 5年前編輯推噓1(101)
留言2則, 2人參與, 5年前最新討論串1/1
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, 5年前 , 1F
string.split
03/06 12:11, 1F

03/06 16:04, 5年前 , 2F
他是prototype,没有.split能用
03/06 16:04, 2F
※ 編輯: tree581 (223.104.5.169), 03/09/2019 20:09:33
文章代碼(AID): #1SVbIxBC (C_Sharp)