我有这段代码:
report_parms =
{
GUID: @Model.GUID;
. . .
......并且Resharper建议我将其更改为:
GUID: "@if (Model != null)
{
@Model.GUID
}
",
...但是然后Resharper说,“意外的令牌”,但建议修复是“将双引号字符串替换为单引号字符串”在后续检查中“查找代码问题”< / p>
Resharper是否被Razor语法弄糊涂了,或者...... ???