C# Class CoreTechs.Logging.IndentedTextWriter

Inheritance: System.CodeDom.Compiler.IndentedTextWriter
Afficher le fichier Open project: Core-Techs/Logging

Méthodes publiques

Méthode Description
IndentedTextWriter ( ) : System

Initializes a new instance of the class using a new string writer and the default tab string.

IndentedTextWriter ( TextWriter writer ) : System

Initializes a new instance of the class using the specified text writer and default tab string.

ToString ( ) : string

Returns the inner writer's ToString(), which in the case of a StringWriter is the buffer itself.

Private Methods

Méthode Description
FixIndentedTextWriterBug ( ) : void

The System.CodeDom.Compiler.IndentedTextWriter class has a bug in its constructor that sets the private field tabsPending to false instead of true, which prevents the first line written from being indented. This function fixes that bug via reflection.

IndentedTextWriter ( TextWriter writer, string tabString ) : System
IndentedTextWriter ( string tabString ) : System
WriteLines ( [ format ) : void

Method Details

IndentedTextWriter() public méthode

Initializes a new instance of the class using a new string writer and the default tab string.
public IndentedTextWriter ( ) : System
Résultat System

IndentedTextWriter() public méthode

Initializes a new instance of the class using the specified text writer and default tab string.
public IndentedTextWriter ( TextWriter writer ) : System
writer System.IO.TextWriter The to use for output.
Résultat System

ToString() public méthode

Returns the inner writer's ToString(), which in the case of a StringWriter is the buffer itself.
public ToString ( ) : string
Résultat string