Difference between @: and <text> in Razor
Asked Answered
R

1

21

What's the difference between these 2 in Razor? I find that I can accomplish the same, whether I use @: or <text>.

Rosetta answered 20/5, 2016 at 14:17 Comment(0)
F
34

Scott Guthrie wrote about both on his blog. His answer basically boils down to <text> supports multiple lines, while @: is meant to be a more compact form for a single line.

Frimaire answered 20/5, 2016 at 14:20 Comment(2)
So, they're functionally the same?Rosetta
@Rosetta It appears so.Frimaire

© 2022 - 2024 — McMap. All rights reserved.