Antaris/RazorEngine

expression is not parsed when @Model is preceded with text

Closed this issue · 1 comments

Example:
I@Model.Type -> expected result IFoo however template is compiled to "I@Model.Type"
workaround:
@string.Format("I{0}",@Model.Type)

I think that is by design as the razor engine tries to be clever and support email addresses (afaik)