Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of '@' sign in cshtml?

Tags:

html

c#

.net

Could you explain me what is meant by '@' sign before each variable in cshtml?

like image 750
Bastien Vandamme Avatar asked Jun 05 '12 09:06

Bastien Vandamme


1 Answers

@ is used to switch from view markup to code. Whether to print a single value or to write a code block.

From ASP.NET:

The @ character starts inline expressions, single statement blocks, and multi-statement blocks:

Read a tutorial on its syntax

like image 136
Muhammad Hasan Khan Avatar answered Oct 06 '22 01:10

Muhammad Hasan Khan