阅读背景:

C# - 要关闭NetworkStream,请调用stream.Close或socket.Shutdown?

来源:互联网 

I was wondering if anyone knew the best way to dispose of a class that uses a Socket object and NetworkStream object? The class in question has an instance of NetworkStream and an instance of Socket that's used to create the NetworkStream.I was wondering if anyone knew the best way to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: