Can i shorten this to one line? I have tried various ways but can\'t quite get it right.
@if(SiteMap.CurrentNode.Title == \"Contact\") { @:
Another way would be:
@if(SiteMap.CurrentNode.Title == "Contact") { } I personally find it more readable than the ternary operator, but this is personal 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
I personally find it more readable than the ternary operator, but this is personal