Back
Close

C# LINQ Introduction

breigo
15.8K views

Filter data with Where

We've built up our understanding of LINQ using Where(predicate) in the last section.

You can apply Where to restrict the result set to contain only elements that satisfy a specified condition.

Example

Return all people, who are at least 30 years old.

Where
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io