C Sharp (C#) - LINQ Fundamentals
Which of the following is the correct syntax for a LINQ query using
select to get only the names from a list of Person objects?select to get only the names from a list of Person objects?Name property is select p.Name.where incorrectly without a condition. var names = from p in people orderby p.Name select p; selects whole object, not just names. var names = from p in people group p by p.Name; groups data, not selects.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions