using ternary operator in a razor view

前端 未结 0 585
渐次进展
渐次进展 2021-01-30 11:30

I developed a MVC application. I am wondering why this code does not work in a Razor view:

@(Model.UltimoLogin.Value == null ? "" : Model.UltimoLogin.va         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题