コード例 #1
0
ファイル: Birds.cs プロジェクト: trambo63/BirdManChallenge
        public int CountGreatKiskudee()
        {
            Birds birds = new Birds();

            string[] source     = GetText().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            var      matchQuery = from word in source
                                  where word.ToLowerInvariant() == birds.getGreatKiskudee().ToLowerInvariant()
                                  select word;
            int birdCount = matchQuery.Count();
            int count     = birdCount * 300;

            return(count);
        }