I am a newbie to ASP.NET MVC razor engine.
I would like to know the meaning/purpose of using @*
before the html fragment in cshtml code?
Its a comment
@* this is commented code in a .cshtml file*@
Similar to this in a .cs file
/*this is commented code in a .cs file*/
This is used to comment the code
@* Your code here to comment *@
The visual studio keyboard shortcut :
select the section you want comment and press : CTRL + K + C will comment code.
and CTRL + K + U will uncomment the code.
For those who are looking for .aspx view engine
pages.
<%-- Your code here to comment --%>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With