/// <summary> /// Get a regional string format for this connection (Don't use this string as a key). /// </summary> /// <returns></returns> public override string ToString() { return(string.Format(Strings.UdpConnectionInfo_StringFormat, SendIPAddress.ToString(), SendPort, AdapterIPAddress.ToString(), ReceivePort, AdapterName )); }
/// <summary> /// The ID to use as a unique key. /// </summary> /// <returns>A unique key string.</returns> public string ToIDString() { return(SendIPAddress.ToString() + ", " + SendPort + "; " + ReceivePort + "; " + AdapterName); }