Skip to main content
🔮 Output PredictionC# C# / .NET Medium⚡+20 XP

LINQ Count

What does this return?

C# / .NET
var nums = new[] {1,2,3,4,5};
var result = nums.Where(n => n > 2).Count();

🔮 What is the output?