Server.Lobby.getClientsInfo C# (CSharp) Метод

getClientsInfo() публичный Метод

public getClientsInfo ( String gametype ) : String
gametype String
Результат String
        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;
        }