Select from following answers:- Add System.Linq namespace and you are using a type that implements IEnumerable

- Change your query from query to method syntax
- Change the type of your query to var
- All Above
You need to add a using statement for LINQ to make sure that all LINQ extension methods are available.
LINQ is implemented as extension methods on IEnumerable.
Show Correct Answer
Source: microsoft book (c#) | |
Alert Moderator