0 votes
in C Sharp by

What are the Main Razor Syntax Rules?

1 Answer

0 votes
by

Following are the rules for main Razor Syntax:

  • Razor code blocks are enclosed in @{ … }
  • Inline expressions (variables and functions) start with @
  • Code statements end with a 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

Related questions

0 votes
asked Jan 20, 2020 in C Sharp by AdilsonLima
0 votes
asked Jul 19, 2020 in JSON by SakshiSharma
0 votes
asked May 6, 2020 in C Sharp by SakshiSharma
...