1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System; namespace MediaBrowser.Model.Net { public class IpEndPointInfo { public IpAddressInfo IpAddress { get; set; } public int Port { get; set; } public override string ToString() { var ipAddresString = IpAddress == null ? string.Empty : IpAddress.ToString(); return ipAddresString + ":" + this.Port.ToString(); } } }