Пример #1
0
 private void SendMessage(TcpClient client, Message message)
 {
     BFormatter.Serialize(client.GetStream(), message);
     Console.WriteLine("Message sent of type: " + message.Type);
 }
Пример #2
0
 private void SendMessage(Message message) => BFormatter.Serialize(TcpClient.GetStream(), message);