コード例 #1
0
    string GetRankingText()
    {
        string rankingText = "";
        IEnumerable <KeyValuePair <string, int> > ranking = RankingManager.GetHighScores(numberOfPositions);

        int i = 1;

        foreach (KeyValuePair <string, int> position in ranking)
        {
            rankingText += i + " - " + position.Key + ": " + position.Value + "\n";
            i++;
        }

        return(rankingText);
    }