/// <summary> /// ToString override /// </summary> /// <returns> /// A <see cref="string"/> /// </returns> public override string ToString() { StringBuilder sb = new StringBuilder(); if (Addr != null) { sb.AppendFormat("Addr: {0}\n", Addr.ToString()); } if (Netmask != null) { sb.AppendFormat("Netmask: {0}\n", Netmask.ToString()); } if (Broadaddr != null) { sb.AppendFormat("Broadaddr: {0}\n", Broadaddr.ToString()); } if (Dstaddr != null) { sb.AppendFormat("Dstaddr: {0}\n", Dstaddr.ToString()); } return(sb.ToString()); }
public override string ToString() { StringBuilder sb = new StringBuilder(); if (Addr != null) { sb.AppendFormat(" Address: {0}\n", Addr.ToString()); } if (Netmask != null) { sb.AppendFormat(" Subnet Mask: {0}\n", Netmask.ToString()); } if (Broadaddr != null) { sb.AppendFormat(" Broadcast Address: {0}\n", Broadaddr.ToString()); } if (Dstaddr != null) { sb.AppendFormat(" Destination Address: {0}\n", Dstaddr.ToString()); } return(sb.ToString()); }