コード例 #1
0
 private void printMessage(MwnpMessage message)
 {
     logStream.Write("Message sent from {0} to {1} - \r\n", message.getSenderId(), message.getReceiverId());
     logStream.WriteLine(message);
 }
コード例 #2
0
 private void printMessage(MwnpMessage message)
 {
     (logStream ?? Console.Out).Write("Message received from {0} intended for {1} - \r\n", message.getSenderId(), message.getReceiverId());
     (logStream ?? Console.Out).WriteLine(message.ToString());
 }