I am having problems with linq queries inside a code block.
@{ var foo = @Model.Things.Select((value, index) => new { value, index }); }
The problem is the new {}, it sees the second bracket, closing the entire code block. Any way to avoid this?
Matthew
source share