Поделиться через


CSharpCodeWriter Класс

Определение

public ref class CSharpCodeWriter : Microsoft::AspNetCore::Razor::CodeGenerators::CodeWriter
public class CSharpCodeWriter : Microsoft.AspNetCore.Razor.CodeGenerators.CodeWriter
type CSharpCodeWriter = class
    inherit CodeWriter
Public Class CSharpCodeWriter
Inherits CodeWriter
Наследование
CSharpCodeWriter

Конструкторы

CSharpCodeWriter()

Свойства

Builder (Унаследовано от CodeWriter)
CurrentIndent (Унаследовано от CodeWriter)
IsAfterNewLine (Унаследовано от CodeWriter)
LineMappingManager
NewLine (Унаследовано от CodeWriter)

Методы

BuildAsyncLambda(Boolean, String[])
BuildClassDeclaration(String, String, IEnumerable<String>)
BuildClassDeclaration(String, String, String)
BuildClassDeclaration(String, String)
BuildConstructor(String, String, IEnumerable<KeyValuePair<String,String>>)
BuildConstructor(String, String)
BuildConstructor(String)
BuildDisableWarningScope(Int32)
BuildLambda(Boolean, String[])
BuildLineMapping(SourceLocation, Int32, String)
BuildMethodDeclaration(String, String, String, IEnumerable<KeyValuePair<String,String>>)
BuildMethodDeclaration(String, String, String)
BuildNamespace(String)
BuildScope()
DecreaseIndent(Int32)
Dispose() (Унаследовано от CodeWriter)
Dispose(Boolean) (Унаследовано от CodeWriter)
GenerateCode() (Унаследовано от CodeWriter)
GetCurrentSourceLocation() (Унаследовано от CodeWriter)
IncreaseIndent(Int32)
Indent(Int32)
ResetIndent()
SetIndent(Int32)
Write(String, Int32, Int32) (Унаследовано от CodeWriter)
Write(String)
WriteAutoPropertyDeclaration(String, String, String)
WriteBooleanLiteral(Boolean)
WriteComment(String)
WriteEndInstrumentationContext(ChunkGeneratorContext)
WriteEndMethodInvocation()
WriteEndMethodInvocation(Boolean)
WriteInstanceMethodInvocation(String, String, Boolean, String[])
WriteInstanceMethodInvocation(String, String, String[])
WriteLine()
WriteLine(String)
WriteLineDefaultDirective()
WriteLineHiddenDirective()
WriteLineNumberDirective(SourceLocation, String)

Записывает директиву #line pragma для номера строки в указанном location.

WriteLocationTaggedString(LocationTagged<String>)
WriteMethodInvocation(String, Boolean, String[])
WriteMethodInvocation(String, String[])
WriteParameterSeparator()
WritePragma(String)
WriteReturn(String, Boolean)
WriteReturn(String)
WriteStartAssignment(String)
WriteStartInstanceMethodInvocation(String, String)
WriteStartInstrumentationContext(ChunkGeneratorContext, Int32, Int32, Boolean)
WriteStartInstrumentationContext(ChunkGeneratorContext, SyntaxTreeNode, Boolean)
WriteStartMethodInvocation(String, String[])
WriteStartMethodInvocation(String)
WriteStartNewObject(String)
WriteStartReturn()
WriteStringLiteral(String)
WriteUsing(String, Boolean)
WriteUsing(String)
WriteVariableDeclaration(String, String, String)

Применяется к