C Sharp (C#) - LINQ Fundamentals
What is wrong with this LINQ query?
var result = people.Select(p => p.Name).Where(name => name.Length > 3);
var result = people.Select(p => p.Name).Where(name => name.Length > 3);
Select projects to names (strings), then Where filters those names by length.Select then Where on projected data is valid [OK]Where only works on original objects15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions