C# Class CoreTechs.Logging.IndentedTextWriter

Inheritance: System.CodeDom.Compiler.IndentedTextWriter
Mostra file Open project: Core-Techs/Logging

Public Methods

Method 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

Method 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 method

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

IndentedTextWriter() public method

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.
return System

ToString() public method

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