我有一个字节列表:
Public Function GenPackets()
Dim Stream As NetworkStream = ConnectionSocket.GetStream()
Dim DataList As New List(Of Byte())
Dim Data As Byte()
DataList.Add(IntegerToByte(My.Settings.BotUID))
' TO DO Stream.Write(Data, 0, 3)
Return Data
End Function
如何将DataList
其所有字节转换为单个 Byte() 以用于Stream.Write
?