In LINQ, what is the purpose of the select clause in a query?

  • Filtering
  • Joining
  • Projection
  • Sorting
The select clause in a LINQ query is used for projection, which means selecting specific fields or properties from the input data source. It allows developers to shape the output of the query by choosing only the relevant information to be returned, which can improve performance and reduce the amount of data transferred over the network. The select clause is essential for customizing the shape of query results to fit the requirements of the application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *