public String getClientsInfo(String gametype) { String infos = ""; foreach (ServerClient client in clients) { if (client.gametype.Equals(gametype)) { infos += client.name + "," + client.ip + "," + client.port + ";"; } } return infos; }