MvcCSharpRazorCodeGenerator Class

Compiles ASP.NET Razor views into classes.

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class MvcCSharpRazorCodeGenerator _
    Inherits CSharpRazorCodeGenerator
'Usage
Dim instance As MvcCSharpRazorCodeGenerator
public class MvcCSharpRazorCodeGenerator : CSharpRazorCodeGenerator
public ref class MvcCSharpRazorCodeGenerator : public CSharpRazorCodeGenerator
public class MvcCSharpRazorCodeGenerator extends CSharpRazorCodeGenerator

The MvcCSharpRazorCodeGenerator type exposes the following members.

Constructors

  Name Description
Public method MvcCSharpRazorCodeGenerator Initializes a new instance of the MvcCSharpRazorCodeGenerator class.

Top

Properties

  Name Description
Public property CancelToken (Inherited from ParserVisitor.)
Public property ClassName (Inherited from RazorCodeGenerator.)
Public property CodeMappings (Inherited from RazorCodeGenerator.)
Protected property CurrentBlock (Inherited from RazorCodeGenerator.)
Protected property CurrentWriteLiteralMethod (Inherited from RazorCodeGenerator.)
Protected property CurrentWriteMethod (Inherited from RazorCodeGenerator.)
Protected property CurrentWriterName (Inherited from RazorCodeGenerator.)
Public property DesignTimeMode (Inherited from RazorCodeGenerator.)
Public property GeneratedClass (Inherited from RazorCodeGenerator.)
Public property GeneratedCode (Inherited from RazorCodeGenerator.)
Public property GeneratedExecuteMethod (Inherited from RazorCodeGenerator.)
Public property GeneratedNamespace (Inherited from RazorCodeGenerator.)
Public property GenerateLinePragmas (Inherited from RazorCodeGenerator.)
Public property HelperVariablesMethod (Inherited from RazorCodeGenerator.)
Public property Host (Inherited from RazorCodeGenerator.)
Protected property InHelper (Inherited from RazorCodeGenerator.)
Protected property InNestedWriterBlock (Inherited from RazorCodeGenerator.)
Protected property InSection (Inherited from RazorCodeGenerator.)
Protected property InTemplate (Inherited from RazorCodeGenerator.)
Public property RootNamespaceName (Inherited from RazorCodeGenerator.)
Public property SourceFileName (Inherited from RazorCodeGenerator.)

Top

Methods

  Name Description
Protected method CreateCodeWriter (Inherited from CSharpRazorCodeGenerator.)
Protected method CreateLinePragma(RazorCodeGenerator.BlockContext) (Inherited from RazorCodeGenerator.)
Protected method CreateLinePragma(SourceLocation, Int32, Int32) (Inherited from RazorCodeGenerator.)
Protected method CreateStatement (Inherited from RazorCodeGenerator.)
Protected method EndBlock (Inherited from RazorCodeGenerator.)
Protected method EnsureExpressionHelperVariable (Inherited from RazorCodeGenerator.)
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 MemberwiseClone (Inherited from Object.)
Public method OnComplete (Inherited from RazorCodeGenerator.)
Protected method ResumeBlock (Inherited from RazorCodeGenerator.)
Protected method StartBlock (Inherited from RazorCodeGenerator.)
Protected method SuspendBlock (Inherited from RazorCodeGenerator.)
Public method ThrowIfCanceled (Inherited from ParserVisitor.)
Public method ToString (Inherited from Object.)
Protected method TryVisitSpecialSpan Returns a value that indicates whether the specified model span is an instance of ModelSpan. (Overrides RazorCodeGenerator.TryVisitSpecialSpan(Span).)
Public method VisitEndBlock (Inherited from RazorCodeGenerator.)
Public method VisitError (Inherited from RazorCodeGenerator.)
Public method VisitSpan(Span) (Inherited from RazorCodeGenerator.)
Protected method VisitSpan(InheritsSpan) (Inherited from RazorCodeGenerator.)
Protected method VisitSpan(HelperFooterSpan) (Inherited from RazorCodeGenerator.)
Protected method VisitSpan(HelperHeaderSpan) (Inherited from RazorCodeGenerator.)
Protected method VisitSpan(NamespaceImportSpan) (Inherited from RazorCodeGenerator.)
Protected method VisitSpan(SectionHeaderSpan) (Inherited from RazorCodeGenerator.)
Public method VisitStartBlock (Inherited from RazorCodeGenerator.)
Protected method WriteHelperTrailer(RazorCodeGenerator.BlockContext) (Inherited from RazorCodeGenerator.)
Protected method WriteHelperTrailer(RazorCodeGenerator.BlockContext, HelperFooterSpan) (Inherited from RazorCodeGenerator.)
Protected method WriteHelperVariable (Inherited from CSharpRazorCodeGenerator.)

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.Mvc.Razor Namespace