C# LINQ Programs

This section contains the set of C# solved programs on LINQ, with solution approach, output, and explanation.

List of C# LINQ Programs

  1. C# program to count the files based on extension using LINQ
  2. C# program to generate random even numbers using LINQ parallel query
  3. C# program to generate numbers that are multiples of 5 using the LINQ parallel query
  4. C# program to print the list of non-generic collections using LINQ
  5. C# program to print the employees whose id is greater than 101 using LINQ
  6. C# program to print the employees whose salary between 6000 and 8000 using LINQ
  7. C# program to print the employees whose name started with character 'S' using LINQ
  8. C# program to print the employees whose name contains less than 4 characters using LINQ
  9. C# program to print the employees whose last character of the name is 'n' using LINQ
  10. C# program to print the employees whose name started with 'S' and Age is greater than 23 using LINQ
  11. C# program to print the numbers greater than 786 in an integer array using LINQ
  12. C# program to print the names that contain 'MAN' substring using LINQ
  13. C# program to print the employees whose salary is greater than the average of all employees salaries using LINQ
  14. C# program to print only those numbers whose value is less than average of all elements in an integer array using LINQ
  15. C# program to demonstrate the example of Except method in Linq
  16. C# program to demonstrate the example of SelectMany() method in Linq
  17. C# program to find the list of students whose name starts with 'S' using where() method of List collection using Linq
  18. C# program to find the list of students whose name contains 4 characters using where() method of List collection using Linq
  19. C# program to demonstrate the use of the method as a condition in the Linq where() method of List collection
  20. C# program to find the index of even numbers using Linq
  21. C# program to find string values from the list of objects using the Linq OfType() method
  22. C# program to find the negative double numbers from the list of objects using Linq
  23. C# program to demonstrate the example of Linq Distinct() method
  24. C# program to demonstrate the example of Linq Intersect() method
  25. C# program to demonstrate the example of Linq Union() method
  26. C# program to demonstrate the example of Linq Union() method with StringComparer
  27. C# program to demonstrate the example of Linq Concat() method
  28. C# program to sort a list of integers using the Linq OrderBy() method
  29. C# program to sort a list of string names using the Linq OrderBy() method
  30. C# program to sort a list of employees based on salary using Linq
  31. C# program to sort a list of employees based on salary and whose department is ABC using Linq
  32. C# program to find integer numbers from the list of objects and sort them using Linq
  33. C# program to demonstrate the example of Linq Intersect() method with OrderBy() method
  34. C# program to demonstrate the use of Linq OrderByDescending() method
  35. C# program to sort student names in descending order using Linq
  36. C# program to sort a list of employees based on salary in descending order and whose department is XYZ using Linq
  37. C# program to demonstrate the example of Linq ThenBy() method
  38. C# program to demonstrate the example of Linq ThenByDescending() method
  39. C# program to demonstrate the example of Linq Reverse() method
  40. C# program to reverse the list of cities using Linq
  41. C# program to demonstrate the example of Linq Aggregate() method
  42. C# program to calculate the sum of array elements using the Linq Aggregate() method
  43. C# program to calculate the total of employee's salaries using the Aggregate() method
  44. C# program to check all items of a float array is greater than 5.0 using Linq
  45. C# program to check the length of courses is more than 2 characters using Linq
  46. C# program to check the salary of all employees is less than 10000 using Linq
  47. C# program to join Employee and Department class using Linq Join Method
  48. C# program to join Employee and Department class using Linq Join Query
  49. C# program to join Employee and Department class and employee's salary must be greater than 3000 using Linq
  50. C# program to join multiple data sources using Linq
  51. C# program to join multiple data sources using Linq Join() method
  52. C# program to check a specified number exists in an array using Linq
  53. C# program to check a specified city exists in the List collection using Linq
  54. C# program to check a specified employee exists in the list of employees using Linq





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.