C Sharp (C#) - LINQ Fundamentals
Which of the following is the correct syntax to order a list of
Person objects by their Age property in ascending order using LINQ?Person objects by their Age property in ascending order using LINQ?OrderBy sorts elements by a key selector, here p => p.Age.people.OrderBy(p => p.Age); correctly orders by age ascending.OrderBy = Sort ascending [OK]OrderBy with a property selector to sort ascending [OK]Where to sort15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions