var students = new[] { new { Name = "Ali", Grade = 85 }, new { Name = "Sara", Grade = 92 }, new { Name = "Reza", Grade = 78 } }; var highAchievers = from student in students where student.Grade > 80 select new { student.Name, student.Grade }; foreach (var student in highAchievers) { Console.WriteLine($"{student.Name} scored {student.Grade}"); }