このコードをかみそりで動作させるのに問題があります
@for (int i = 0; i < Model.Count(); i++)
{
<ul>@createSubastaContainer(Model.ElementAt(i))
if (i % 5 == 0)
{
</ul>
}
}
要素が5の乗算である場合、私が欲しいものは、</ul>
私のコードの何が問題になっていますか?それは</ul>
常に印刷されており、式自体も印刷されているからです
アップデート
赤い@marteljnに基づいて、変更が例外をスローするときに答えます
The for block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.