/// <summary> /// Returns this as string. /// </summary> /// <returns>Returns this as string.</returns> public override string ToString() { StringBuilder retVal = new StringBuilder(); retVal.Append("* " + m_ResponseCode + " "); if (m_pOptionalResponse != null) { retVal.Append("[" + m_pOptionalResponse.ToString() + "] "); } retVal.Append(m_ResponseText + "\r\n"); return(retVal.ToString()); }
/// <summary> /// Returns this as string. /// </summary> /// <returns>Returns this as string.</returns> public override string ToString() { StringBuilder retVal = new StringBuilder(); if (!string.IsNullOrEmpty(m_CommandTag)) { retVal.Append(m_CommandTag + " "); } retVal.Append(m_ResponseCode + " "); if (m_pOptionalResponse != null) { retVal.Append("[" + m_pOptionalResponse.ToString() + "] "); } retVal.Append(m_ResponseText + "\r\n"); return(retVal.ToString()); }