Example #1
0
 /// <summary> Gets the <see cref="string"/> representation of this <see cref="Connection"/> instance. </summary>
 /// <returns> The <see cref="string"/> representation of this <see cref="Connection"/> instance. </returns>
 public override string ToString() => $"Local: {IPLocalEndPoint?.ToString()} Remote: {IPRemoteEndPoint?.ToString()}";
Example #2
0
 /// <summary>
 /// Value of the connection.
 /// </summary>
 /// <returns>Overall data about the connection.</returns>
 public override string ToString()
 {
     return($"Local: {IPLocalEndPoint?.ToString()} Remote: {IPRemoteEndPoint?.ToString()}");
 }