Home / DeveloperSection / Interviews / What are the Main Razor Syntax Rules?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
Manish Kumar
MVC Razor code blocks are enclosed in @{ ... }
In Razor Inline expressions (variables and functions) start with @
Code statements end with semicolon
Variables are declared with the var keyword
Strings are enclosed with quotation marks
C# code is case sensitive
C# files have the extension .cshtml
You have need login or register for voting of answers or question.
Manish Kumar
17-May-2017MVC Razor code blocks are enclosed in @{ ... }
In Razor Inline expressions (variables and functions) start with @
Code statements end with semicolon
Variables are declared with the var keyword
Strings are enclosed with quotation marks
C# code is case sensitive
C# files have the extension .cshtml