List<byte[]> byteList = new List<byte[]>(2);
byteList.Add(Encoding.UTF8.GetBytes(this.rtbAdapterInfo.Text));
byteList.Add(Encoding.UTF8.GetBytes(this.rtbAdapterInfo.SelectedRtf));
socket.Send(byteList);//IList<ArraySegment<byte>> buffers这样写会报错,但MSDN上面又是这解释的:
如果是我误解了,在Send只发送一次的情况下,上面的代码该怎么改???