Exemplo n.º 1
0
        static void Main(string[] args)
        {
            LinqPractice practice = new LinqPractice();

            Console.WriteLine(practice.AtoZWithFrequency("terrill"));
            Console.ReadKey();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            LinqPractice linq = new LinqPractice();

            linq.ReturnSubstring();
            linq.ReturnNonDuplicateNames();
            linq.ReturnClassAverage();
            linq.AlphabeticallyOrderedStringFrequency();
        }
Exemplo n.º 3
0
        public void ReturnSubstring()
        {
            var words   = new LinqPractice().GetWords();
            var thWords = words.Where(w => w.word.Contains("th"));

            foreach (var word in thWords)
            {
                Console.WriteLine(word.word);
            }
            Console.ReadLine();
        }