示例#1
0
 public Score CurrentScore()
 {
     return(Score.SumOfWins(Games.Where(g => g.IsOver()).Select(g => g.CurrentScore()).ToList()));
 }
示例#2
0
文件: Match.cs 项目: olafbauer/Tennis
 public static Score CurrentScore(Match match)
 {
     return(Score.SumOfWins(match.Sets.Where(s => s.IsOver()).Select(s => s.CurrentScore()).ToList()));
 }