public override sealed string ToString() { using (StringWriter wtr = new StringWriter()) { WriteTo(CodedTextOutputStream.CreateInstance(new TextGenerator(wtr))); return(wtr.ToString()); } }
/// <summary> /// Outputs a textual representation of the Protocol Message supplied into /// the parameter output. /// </summary> public static void Print(IMessageLite message, TextWriter output) { message.WriteTo(CodedTextOutputStream.CreateInstance(new TextGenerator(output))); }