CSharpRazorCodeGenerator Class

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

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.ParserVisitor
    System.Web.Razor.Generator.RazorCodeGenerator
      System.Web.Razor.Generator.CSharpRazorCodeGenerator

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

Syntax

'Declaration
Public Class CSharpRazorCodeGenerator _
    Inherits RazorCodeGenerator
'Usage
Dim instance As CSharpRazorCodeGenerator
public class CSharpRazorCodeGenerator : RazorCodeGenerator
public ref class CSharpRazorCodeGenerator : public RazorCodeGenerator
type CSharpRazorCodeGenerator =  
    class 
        inherit RazorCodeGenerator 
    end
public class CSharpRazorCodeGenerator extends RazorCodeGenerator

The CSharpRazorCodeGenerator type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property CancelToken This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the cancellation token. (Inherited from ParserVisitor.)
Public property ClassName This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the class name for this code. (Inherited from RazorCodeGenerator.)
Public property Context This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets the context of this code generator. (Inherited from RazorCodeGenerator.)
Public property DesignTimeMode This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a value indicating whether the code generator is in design-time mode. (Inherited from RazorCodeGenerator.)
Public property GenerateLinePragmas This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets a value indicating whether the generator should generate line pragmas in the Razor code. (Inherited from RazorCodeGenerator.)
Public property Host This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the razor engine host. (Inherited from RazorCodeGenerator.)
Public property RootNamespaceName This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the name of the root namespace. (Inherited from RazorCodeGenerator.)
Public property SourceFileName This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the name of the source file. (Inherited from RazorCodeGenerator.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method Initialize This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes the context for this code generator. (Overrides RazorCodeGenerator.Initialize(CodeGeneratorContext).)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnComplete This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Raises the Complete event. (Inherited from RazorCodeGenerator.)
Public method ThrowIfCanceled This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Inherited from ParserVisitor.)
Public method ToString (Inherited from Object.)
Public method VisitBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the specified block. (Inherited from ParserVisitor.)
Public method VisitEndBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the end block. (Inherited from RazorCodeGenerator.)
Public method VisitError This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the given razor error. (Inherited from ParserVisitor.)
Public method VisitSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the span. (Inherited from RazorCodeGenerator.)
Public method VisitStartBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the start block. (Inherited from RazorCodeGenerator.)

Top

Extension Methods

  Name Description
Public Extension Method Visit (Defined by ParserVisitorExtensions.)

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.Generator Namespace