Share via


RazorCodeLanguage Class

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.

Inheritance Hierarchy

System.Object
  System.Web.Razor.RazorCodeLanguage
    System.Web.Razor.CSharpRazorCodeLanguage
    System.Web.Razor.VBRazorCodeLanguage

Namespace:  System.Web.Razor
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public MustInherit Class RazorCodeLanguage
'Usage
Dim instance As RazorCodeLanguage
public abstract class RazorCodeLanguage
public ref class RazorCodeLanguage abstract
[<AbstractClassAttribute>]
type RazorCodeLanguage =  class end
public abstract class RazorCodeLanguage

The RazorCodeLanguage type exposes the following members.

Constructors

  Name Description
Protected method 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.

Top

Properties

  Name Description
Public property 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.
Public property 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.
Public propertyStatic member 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.

Top

Methods

  Name Description
Public method CreateCodeGenerator 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.
Public method 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.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetLanguageByExtension 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.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor Namespace