Series bài học LINQ https://www.tutorialsteacher.com/linq/what-is-linq

Bài tập 1

Write a program in C# Sharp to display the characters and frequency of character from giving string. Test Data: Input the string: apple Expected Output: The frequency of the characters are : Character a: 1 times Character p: 2 times Character l: 1 times Character e: 1 times https://www.w3resource.com/csharp-exercises/linq/csharp-linq-exercise-5.php

Bài tập 2

Write a program in C# Program to Count File Extensions and Group it using LINQ. Test Data : The files are : aaa.frx, bbb.TXT, xyz.dbf,abc.pdf aaaa.PDF,xyz.frt, abc.xml, ccc.txt, zzz.txt Expected Output : Here is the group of extension of the files : 1 File(s) with .frx Extension 3 File(s) with .txt Extension 1 File(s) with .dbf Extension 2 File(s) with .pdf Extension 1 File(s) with .frt Extension 1 File(s) with .xml Extension https://www.w3resource.com/csharp-exercises/linq/csharp-linq-exercise-15.php

Bài tập 3

Sắp xếp Tên tăng dần, giảm dần theo thứ tự ABC
List<string> names = new List<string>()
            {
                "Heather", "James", "Xavier", "Michelle", "Brian", "Nina",
                "Kathleen", "Sophia", "Amir", "Douglas", "Zarley", "Beatrice",
                "Theodora", "William", "Svetlana", "Charisse", "Yolanda",
                "Gregorio", "Jean-Paul", "Evangelina", "Viktor", "Jacqueline",
                "Francisco", "Tre"
            };