CodeGeneratorContext Class

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

System::Object
  System.Web.Razor.Generator::CodeGeneratorContext

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

public ref class CodeGeneratorContext

The CodeGeneratorContext type exposes the following members.

  NameDescription
Public propertyCodeMappingsThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the dictionary collection of generated code mapping.
Public propertyCompileUnitThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the code compile unit that will hold the program graph.
Public propertyCurrentBufferedStatementThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets the current buffered statement.
Public propertyGeneratedClassThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the generated class type declaration.
Public propertyHostThis 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.
Public propertyNamespaceThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the generated namespace declaration.
Public propertySourceFileThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the source file.
Public propertyTargetMethodThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the generated member method.
Public propertyTargetWriterNameThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the name of text writer.
Top

  NameDescription
Public methodAddCodeMappingThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a new generated code mapping to the collection.
Public methodAddContextCallThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a code statement for a context call on the specified method.
Public methodAddDesignTimeHelperStatementThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds a code statement that inserts the Razor design time helpers method in the specified code statement.
Public methodAddStatement(String)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.
Public methodAddStatement(String, CodeLinePragma)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the specified code statement to the body of the target method.
Public methodBufferStatementFragment(String)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Appends the specified fragment to the current buffered statement.
Public methodBufferStatementFragment(Span)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Appends the content of the span to the current buffered statement.
Public methodBufferStatementFragment(String, Span)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Appends the specified fragment to the current buffered statement.
Public methodChangeStatementCollectorAssigns a new statement collector and returns a disposable action that restores the old statement collector.
Public methodStatic memberCreateThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Creates a new instance of the CodeGeneratorContext class.
Public methodEnsureExpressionHelperVariableThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Adds the expression helper variable to the generated class if not yet added,
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFlushBufferedStatementThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Flushes the current buffered statement.
Public methodGenerateLinePragma(Span)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Generates the line pragma for the specified source.
Public methodGenerateLinePragma(Span, Int32)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Generates the line pragma for the source.
Public methodGenerateLinePragma(SourceLocation, Int32, Int32)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Generates the line pragma for the source.
Public methodGenerateLinePragma(Span, Int32, Int32)This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Generates the line pragma for the source.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMarkEndOfGeneratedCodeThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Marks the end of generated code.
Public methodMarkStartOfGeneratedCodeThis type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Marks the start of generated code.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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