예제 #1
0
파일: Plays.cs 프로젝트: niamor83/bgg_stats
        public int GetHIndex()
        {
            int counter = 0;

            foreach (var item in GameCounts.OrderByDescending(p => p.Value))
            {
                if (item.Value > counter)
                {
                    counter++;
                }
                else
                {
                    break;
                }
            }
            return(counter);
        }