1.

What are the rules of Razor syntax?

Answer»

The primary rules for creating Razor are:

  • The block of Razor CODES is enclosed within @{ ... }.
  • Variables and functions of INLINE expressions start with @ symbol.
  • The ‘var’ keyword is used for declaring variables.
  • Razor code statements are terminated with a semicolon.
  • C# FILES have .cshtml as FILE EXTENSION.


Discussion

No Comment Found