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 | |
---|---|---|
![]() |
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 | |
---|---|---|
![]() |
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.) |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
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).) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
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.) |
![]() |
ToString | (Inherited from Object.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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.) |
![]() |
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 | |
---|---|---|
![]() |
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.