public override string ToString() { string v; try { v = GetAdditionalString(); } catch (Exception) { v = " ERROR_GETTING_ADDITIONAL_STRING"; } if (IsUdp) { return($"{{Socket udp={_ePPair.LocalEP} {base.State.ToString()}{v}}}"); } return($"{{Socket {_ePPair.ToString()} {base.State.ToString()}{v}}}"); }
public override string GetInfoStr() => _eppair.ToString();