RazorCodeLanguage Class

Definition

Represents the base for all Razor code language.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

public abstract class RazorCodeLanguage
type RazorCodeLanguage = class
Public MustInherit Class RazorCodeLanguage
Inheritance
RazorCodeLanguage
Derived

Constructors

RazorCodeLanguage()

Initializes a new instance of the RazorCodeLanguage class.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Properties

CodeDomProviderType

Gets the type of the CodeDOM provider.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

LanguageName

Gets the language name of the current Razor code, that is “csharp” or “vb”.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Languages

Gets the list of language supported by the Razor code.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Methods

CreateCodeGenerator(String, String, String, RazorEngineHost)

Creates the code generator for the Razor code language.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

CreateCodeParser()

Creates the code parser for the Razor code language.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

GetLanguageByExtension(String)

Gets the language of the Razor code using the specified file extension.This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Applies to