O'Reilly logo
  • Ryan Garrett thinks this is interesting:

@if (Model.WillAttend == true) {
                @:It's great that you're coming. The drinks are already in the fridge!
            } else {
                @:Sorry to hear that you can't make it, but thanks for letting us know.


Cover of Pro ASP.NET MVC 5, Fifth Edition


How to escape out of C# in a cshtml code block