Example #1
0
        public string ToShortString()
        {
            string raw = string.IsNullOrWhiteSpace(RawReply)
                                ? "Empty raw reply"
                                : "Raw reply of " + Grammar.Number(RawReply.Length, "character");

            string exception = ParsingException == null
                                ? string.Empty
                                : string.Format(" (with exception '{0}': '{1}')", ParsingException.GetType(), ParsingException.Message);

            return(string.Format(
                       "{0}{1}, {2}.",
                       raw,
                       exception,
                       Parsed == null ? "not parsed" : "parsed to " + Parsed.ToShortString()
                       ));
        } // ToShortString