コード例 #1
0
        public List <string> getPlayerNames()
        {
            List <Player> players = repo.getAllPlayers();
            List <string> names   = new List <string>();

            foreach (Player p in players)
            {
                names.Add(p.Name);
            }

            return(names);
        }