SystemExt.Demo/Network.cs
/// <summary>
/// Event which is called when the network connection is closed.
/// </summary>
/// <param name="error">
/// Either an instance of the <see cref="NetworkError"/> class which represents the error
/// which caused the connection to close, or null if the connection closed cleanly.
/// </param>
Event which is called when the network connection is closed.
Event which is called when the network connection is closed .
protected override void OnClose(NetworkError error)
            {
                Console.WriteLine("Disconnected from {0} (error: {1})",
                    this.RemoteEndPoint == null ? "the server" : this.RemoteEndPoint.ToString(),
                    error == null ? "none" : error.Message);
            }
protected override void OnClose ( NetworkError error ) { Console . WriteLine ( " " , this . RemoteEndPoint == null ? " " : this . RemoteEndPoint . ToString ( ) , error == null ? " " : error . Message ) ; }
Event which is called when the network connection is closed.
Event which is called when the network connection is closed .
error
NetworkError
Either an instance of the  class which represents the error
which caused the connection to close, or null if the connection closed cleanly.
Either an instance of the class which represents the error which caused the connection to close or null if the connection closed cleanly .