.Net MVC Razor @: and @@ sytnax

Two useful syntax helpers in in Razor are @: and @@

@: or (<text></text>)

@foreach(var a in b) {
    @: (Hello world)
}

@@

..
TwitterName @@thecsharper
..

Leave a Reply

Your email address will not be published. Required fields are marked *