6 ms·Foreach in razor is just c# too, so it's not a language thing it's more what it transpiles to.by _betty_ 3y agoForeach in razor is just c# too, so it's not a language thing it's more what it transpiles to.