I am a beginner in Linq.
How can I rewrite this lambda expression as a linq compiled query?
var query5 = CustomerList.Select((cust, index) => new {cust, index})
.Where(c => c.cust.Country == "USA" && c.index > 70)
.Select(c => new { c.cust.CustomerID, c.cust.CompanyName,
c.index });
like
var query5 = from c in .......
where .....
select c new {....}