I want to do something like this:
from a in stuff let counter = 0 select new { count = counter++, a.Name };
But I get a error telling me that c
If you truly want it to be a counter, and not just an index, then just move the counter declaration outside the LINQ expression
var counter = 0; from a in stuff select new { count = counter++; a.Name };