- What are the two required parts of LINQ?
Answer: A LINQ provider and the LINQ extension methods. You must import the System.Linq namespace to make the LINQ extension methods available and reference a LINQ provider assembly for the type of data that you want to work with.
- Which LINQ extension method would you use to return a subset of properties from a type?
Answer: The Select method allows projection (selection) of properties.
- Which LINQ extension method would you use to filter a sequence?
Answer: The Where method allows filtering by supplying a delegate (or lambda expression) that returns a Boolean to indicate whether the value should be included in the results.
- List five LINQ extension methods that perform aggregation.
Answer: Any five of the following: Max, Min, Count, LongCount, Average, Sum, and Aggregate...