示例#1
0
 public double Rating()
 {
     if (Players.Count == 0)
     {
         return(0);
     }
     return(Math.Round(Players.Average(a => a.Skill)));
 }
示例#2
0
    public int Rating()
    {
        int rating = 0;

        if (Players.Count > 0)
        {
            rating = (int)Math.Round(Players.Average(p => p.Statistics.Summary));
        }
        return(rating);
    }