C# program to check the salary of all employees is less than 10000 using Linq
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Program:
The source code to check the salary of all employees is less than 10000 using Linq, which is given below. The given program is compiled and executed successfully on Microsoft Visual Studio.
Output:
Explanation:
In the above program, we created the Employee class that contains the ID, Name, Salary, Department, and Main() method. In the Main() method, we created a list of employees.
In the above statement, we checked the salary of all employees is less than 10000. If the salary of all employees is less than 10000 then the All() method will return true otherwise it will return false.
need an explanation for this answer? contact us directly to get an explanation for this answer