private void SendMessage(TcpClient client, Message message) { BFormatter.Serialize(client.GetStream(), message); Console.WriteLine("Message sent of type: " + message.Type); }
private void SendMessage(Message message) => BFormatter.Serialize(TcpClient.GetStream(), message);