示例#1
0
 public override sealed string ToString()
 {
     using (StringWriter wtr = new StringWriter())
     {
         WriteTo(CodedTextOutputStream.CreateInstance(new TextGenerator(wtr)));
         return(wtr.ToString());
     }
 }
示例#2
0
 /// <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)));
 }