// Define the Employee class class Employee { public string Name { get; set; } public int Age { get; set; } public decimal Salary { get; set; } } // Create a Model List of Employee objects var employees = new ListThe Model List class is part of the System.Collections.Generic namespace in the .NET Framework, which provides a collection of generic-based collection classes like List, Dictionary, and HashSet.{ new Employee { Name = "John", Age = 30, Salary = 50000 }, new Employee { Name = "Jane", Age = 27, Salary = 55000 }, new Employee { Name = "Bob", Age = 35, Salary = 45000 }, new Employee { Name = "Alice", Age = 25, Salary = 60000 } }; // Use LINQ to get the highest-paid employee var highestPaidEmployee = employees.OrderByDescending(e => e.Salary).First(); Console.WriteLine("The highest-paid employee is {0} with a salary of {1:C}.", highestPaidEmployee.Name, highestPaidEmployee.Salary); // Use LINQ to sort employees by age var sortedEmployees = employees.OrderBy(e => e.Age); Console.WriteLine("Employees sorted by age:"); foreach (var employee in sortedEmployees) { Console.WriteLine("{0} ({1} years old)", employee.Name, employee.Age); }