Share via


CSharpCodeWriter.WriteLineNumberDirective(SourceLocation, String) Method

Definition

Writes a #line pragma directive for the line number at the specified location.

public:
 Microsoft::AspNetCore::Razor::CodeGenerators::CSharpCodeWriter ^ WriteLineNumberDirective(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ file);
public Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter WriteLineNumberDirective (Microsoft.AspNetCore.Razor.SourceLocation location, string file);
member this.WriteLineNumberDirective : Microsoft.AspNetCore.Razor.SourceLocation * string -> Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter
Public Function WriteLineNumberDirective (location As SourceLocation, file As String) As CSharpCodeWriter

Parameters

location
SourceLocation

The location to generate the line pragma for.

file
String

The file to generate the line pragma for.

Returns

The current instance of CSharpCodeWriter.

Applies to