How to use generic syntax inside a Razor view file?

后端 未结 5 1695
遥遥无期
遥遥无期 2021-02-04 23:26

I was trying to use the following statement:

@Html.Test().Nand()

However, Razor is choking at the < before the ISQL.

Any

5条回答
  •  轮回少年
    2021-02-04 23:32

    To use generic methods you need to escape the expression

    @(Html.Test().Nand())
    

提交回复
热议问题