Share via


RazorTemplateEngine.CreateCodeGenerator(String, String, String) Method

Definition

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

protected internal virtual System.Web.Razor.Generator.RazorCodeGenerator CreateCodeGenerator (string className, string rootNamespace, string sourceFileName);
abstract member CreateCodeGenerator : string * string * string -> System.Web.Razor.Generator.RazorCodeGenerator
override this.CreateCodeGenerator : string * string * string -> System.Web.Razor.Generator.RazorCodeGenerator
Protected Friend Overridable Function CreateCodeGenerator (className As String, rootNamespace As String, sourceFileName As String) As RazorCodeGenerator

Parameters

className
String

The name of the generated class.

rootNamespace
String

The namespace in which the generated class will reside.

sourceFileName
String

The file name to use in line pragmas.

Returns

The created RazorCodeGenerator.

Applies to