public void ServerSendMessage() { if (key == "TCP") { serverTCP.SendMessage("serverTCP.SendMessage"); } else if (key == "UDP") { ServerUDP.SendMessage("ServerUDP.SendMessage"); } }