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

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

            return(count);
        }