Why doesnt the following compile? the c in prices.Where() is not a declared variable in this scope right? Sounds like a compiler bug to me or am I missing something?
Code:int c = 0; List<Price> list = prices.Where(c => c.Product_id == product_id).ToList(); c++;