Which LINQ operator is used to filter elements in a sequence based on a specified condition?
- GroupBy
- OrderBy
- Select
- Where
The Where operator is used to filter elements in a sequence based on a specified condition. It takes a predicate as an argument and returns a new sequence containing only the elements that satisfy the specified condition. This is commonly used for filtering data in LINQ queries.
Loading...
Related Quiz
- In ADO.NET, the DataAdapter uses a combination of ___________ to perform its operations.
- The Rollback method in ADO.NET is used to ___________ a transaction.
- In Entity Framework, what is an entity?
- Which ADO.NET class is responsible for transferring data between a data source and a data-bound control?
- Scenario: You need to retrieve data from an XML document. Which LINQ technology can be used for querying XML data?