2 回答

TA貢獻1869條經(jīng)驗 獲得超4個贊
嘗試這個:
List<GameResult> gameResults = gamerArray.GamePlayers.Select(g => new GameResult
{
GameID = g.GameID,
GameName = g.GameName,
SessionStart = g.StartTime,
SessionEnd = g.EndTime,
SessionMessage = "You Won!"
}).ToList();

TA貢獻1811條經(jīng)驗 獲得超4個贊
gameResults = gamerArray.GamePlayers.Select(g => new GameResult
{
GameID = g.GameID,
GameName = g.GameName,
SessionStart = g.StartTime,
SessionEnd = g.EndTime,
SessionMessage = "You Won!"
}).ToList();
- 2 回答
- 0 關(guān)注
- 136 瀏覽
添加回答
舉報