public override string ToString() { var sb = new StringBuilder("Batch("); if ((Process != null)) { sb.Append(", Process: "); Process.ToString(sb); } if ((Spans != null)) { sb.Append(", Spans: "); Spans.ToString(sb); } if (__isset.seqNo) { sb.Append(", SeqNo: "); SeqNo.ToString(sb); } if ((Stats != null) && __isset.stats) { sb.Append(", Stats: "); Stats.ToString(sb); } sb.Append(')'); return(sb.ToString()); }
/// <summary> /// Returns this packet info as string. /// </summary> /// <returns>Returns packet info.</returns> public override string ToString() { StringBuilder retVal = new StringBuilder(); retVal.Append("----- RTP Packet\r\n"); retVal.Append("Version: " + Version.ToString() + "\r\n"); retVal.Append("IsMaker: " + IsMarker.ToString() + "\r\n"); retVal.Append("PayloadType: " + m_PayloadType.ToString() + "\r\n"); retVal.Append("SeqNo: " + SeqNo.ToString() + "\r\n"); retVal.Append("Timestamp: " + m_Timestamp.ToString() + "\r\n"); retVal.Append("SSRC: " + m_SSRC.ToString() + "\r\n"); retVal.Append("Data: " + m_Data.Length + " bytes.\r\n"); return(retVal.ToString()); }