That the razor syntax is neat, there's little arguing about. But i can't seem to find it anywhere...
What are the razor reserved words?
@using
@inherits
@functions
@section
Do you know any other?
That the razor syntax is neat, there's little arguing about. But i can't seem to find it anywhere...
What are the razor reserved words?
@using
@inherits
@functions
@section
Do you know any other?
Here's a list of Razor reserved keywords (Note: This applies to cshtml, vbhtml follows VB's rules):
You can escape these using @(inherits)
These are C# keywords that are understood by Razor
You can escape them using @(@lock)
(first @
is used to escape the Razor parser and the second @
is used to escape the C# parser)
These are not reserved in RC but will be for RTM. Update: These will have no functionality for RTM. They are simply reserved for future use.