CSharpRazorCodeGenerator Class

Definition

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.

public class CSharpRazorCodeGenerator : System.Web.Razor.Generator.RazorCodeGenerator
type CSharpRazorCodeGenerator = class
    inherit RazorCodeGenerator
Public Class CSharpRazorCodeGenerator
Inherits RazorCodeGenerator
Inheritance
CSharpRazorCodeGenerator

Constructors

CSharpRazorCodeGenerator(String, String, String, RazorEngineHost)

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.

Properties

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)
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)
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)
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)
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)
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)
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)
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)

Methods

Initialize(CodeGeneratorContext)

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.

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)
ThrowIfCanceled()

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

(Inherited from ParserVisitor)
VisitBlock(Block)

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)
VisitEndBlock(Block)

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)
VisitError(RazorError)

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)
VisitSpan(Span)

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)
VisitStartBlock(Block)

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)

Extension Methods

Visit(ParserVisitor, ParserResults)

Applies to