NetworkStream.ToString()这个方法是用来显示NetworkStream完整类名称的~其实就是Object.ToString()~
你要获得NetworkStream的内容自然要读取数据留里的信息然后转码~
假设你用的是ASCII码传输
const int bufferSize = 1024;
byte[] buffer = new byte[bufferSize];
int readBytes = 0;
try
{
readBytes = NetStream.Read(buffer, 0, bufferSize);
string str = Encoding.ASCII.GetString(buffer).Substring(0, readBytes);
MessageBox.Show(str);
}