Esempio n. 1
0
        public int CountVulnerableBirdHunter()
        {
            Birds birds = new Birds();

            string[] source     = GetText().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            var      matchQuery = from word in source
                                  where word.ToLowerInvariant() == birds.getVulnerableBirdHunter().ToLowerInvariant()
                                  select word;
            int birdCount = matchQuery.Count();
            int count     = birdCount + 200 + 400 + 800 + 1600;

            return(count);
        }