Пример #1
0
        static void Main(string[] args)
        {
            LinqPractice practice = new LinqPractice();

            Console.WriteLine(practice.AtoZWithFrequency("terrill"));
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            LinqPractice linq = new LinqPractice();

            linq.ReturnSubstring();
            linq.ReturnNonDuplicateNames();
            linq.ReturnClassAverage();
            linq.AlphabeticallyOrderedStringFrequency();
        }
Пример #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();
        }