C# Class WebApplications.Utilities.Formatting.FormatTextWriter.UnderlyingFormatTextWriter

Wraps a TextWriter, providing position tracking and synchronized writing with a Layout.
This is not inherently thread safe, to make thread safe use a synchronization wrapper.
Inheritance: System.IO.TextWriter, ILayoutTextWriter
Datei anzeigen Open project: webappsuk/CoreLibraries

Public Methods

Method Description
Flush ( ) : void

Flushes this instance.

FlushAsync ( ) : System.Threading.Tasks.Task

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

UnderlyingFormatTextWriter ( [ writer, [ builder, int startPosition ) : System

Initializes a new instance of the UnderlyingFormatTextWriter class.

Write ( [ buffer ) : void

Writes the specified buffer.

Write ( bool value ) : void

Writes the specified value.

Write ( char value ) : void

Writes the specified value.

Write ( char buffer, int index, int count ) : void

Writes the specified buffer.

Write ( decimal value ) : void

Writes the specified value.

Write ( double value ) : void

Writes the specified value.

Write ( float value ) : void

Writes the specified value.

Write ( int value ) : void

Writes the specified value.

Write ( long value ) : void

Writes the specified value.

Write ( string format ) : void

Writes the specified format.

Write ( string format, [ arg0 ) : void

Writes the specified format.

Write ( string format, [ arg0, [ arg1 ) : void

Writes the specified format.

Write ( string format, [ arg0, [ arg1, [ arg2 ) : void

Writes the specified format.

Write ( uint value ) : void

Writes the specified value.

Write ( ulong value ) : void

Writes the specified value.

WriteAsync ( [ value ) : System.Threading.Tasks.Task

Writes a string to the text string or stream asynchronously.

WriteAsync ( char value ) : System.Threading.Tasks.Task

Writes a character to the text string or stream asynchronously.

WriteAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task

Writes a subarray of characters to the text string or stream asynchronously.

WriteLine ( ) : void

Writes the line.

WriteLine ( [ buffer ) : void

Writes the line.

WriteLine ( bool value ) : void

Writes the line.

WriteLine ( char value ) : void

Writes the line.

WriteLine ( char buffer, int index, int count ) : void

Writes the line.

WriteLine ( decimal value ) : void

Writes the line.

WriteLine ( double value ) : void

Writes the line.

WriteLine ( float value ) : void

Writes the line.

WriteLine ( int value ) : void

Writes the line.

WriteLine ( long value ) : void

Writes the line.

WriteLine ( string format ) : void

Writes the line.

WriteLine ( string format, [ arg0 ) : void

Writes the line.

WriteLine ( string format, [ arg0, [ arg1 ) : void

Writes the line.

WriteLine ( string format, [ arg0, [ arg1, [ arg2 ) : void

Writes the line.

WriteLine ( uint value ) : void

Writes the line.

WriteLine ( ulong value ) : void

Writes the line.

WriteLineAsync ( ) : System.Threading.Tasks.Task

Writes a line terminator asynchronously to the text string or stream.

WriteLineAsync ( [ value ) : System.Threading.Tasks.Task

Writes a string followed by a line terminator asynchronously to the text string or stream.

WriteLineAsync ( char value ) : Task

Writes a character followed by a line terminator asynchronously to the text string or stream.

WriteLineAsync ( char buffer, int index, int count ) : Task

Writes a subarray of characters followed by a line terminator asynchronously to the text string or stream.

Method Details

Flush() public method

Flushes this instance.
public Flush ( ) : void
return void

FlushAsync() public method

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public FlushAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

UnderlyingFormatTextWriter() public method

Initializes a new instance of the UnderlyingFormatTextWriter class.
Cannot wrap an ILayoutTextWriter in a FormatTextWriter as this can cause issues with position tracking.
public UnderlyingFormatTextWriter ( [ writer, [ builder, int startPosition ) : System
writer [ The writer.
builder [ The builder.
startPosition int The start position.
return System

Write() public method

Writes the specified buffer.
public Write ( [ buffer ) : void
buffer [ The buffer.
return void

Write() public method

Writes the specified value.
public Write ( bool value ) : void
value bool The value.
return void

Write() public method

Writes the specified value.
public Write ( char value ) : void
value char The value.
return void

Write() public method

Writes the specified buffer.
public Write ( char buffer, int index, int count ) : void
buffer char The buffer.
index int The index.
count int The count.
return void

Write() public method

Writes the specified value.
public Write ( decimal value ) : void
value decimal The value.
return void

Write() public method

Writes the specified value.
public Write ( double value ) : void
value double The value.
return void

Write() public method

Writes the specified value.
public Write ( float value ) : void
value float The value.
return void

Write() public method

Writes the specified value.
public Write ( int value ) : void
value int The value.
return void

Write() public method

Writes the specified value.
public Write ( long value ) : void
value long The value.
return void

Write() public method

Writes the specified format.
public Write ( string format ) : void
format string The format.
return void

Write() public method

Writes the specified format.
public Write ( string format, [ arg0 ) : void
format string The format.
arg0 [ The arg0.
return void

Write() public method

Writes the specified format.
public Write ( string format, [ arg0, [ arg1 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
return void

Write() public method

Writes the specified format.
public Write ( string format, [ arg0, [ arg1, [ arg2 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
arg2 [ The arg2.
return void

Write() public method

Writes the specified value.
public Write ( uint value ) : void
value uint The value.
return void

Write() public method

Writes the specified value.
public Write ( ulong value ) : void
value ulong The value.
return void

WriteAsync() public method

Writes a string to the text string or stream asynchronously.
public WriteAsync ( [ value ) : System.Threading.Tasks.Task
value [ The string to write. If is null, nothing is written to the text stream.
return System.Threading.Tasks.Task

WriteAsync() public method

Writes a character to the text string or stream asynchronously.
public WriteAsync ( char value ) : System.Threading.Tasks.Task
value char The character to write to the text stream.
return System.Threading.Tasks.Task

WriteAsync() public method

Writes a subarray of characters to the text string or stream asynchronously.
public WriteAsync ( char buffer, int index, int count ) : System.Threading.Tasks.Task
buffer char The character array to write data from.
index int The character position in the buffer at which to start retrieving data.
count int The number of characters to write.
return System.Threading.Tasks.Task

WriteLine() public method

Writes the line.
public WriteLine ( ) : void
return void

WriteLine() public method

Writes the line.
public WriteLine ( [ buffer ) : void
buffer [ The buffer.
return void

WriteLine() public method

Writes the line.
public WriteLine ( bool value ) : void
value bool The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( char value ) : void
value char The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( char buffer, int index, int count ) : void
buffer char The buffer.
index int The index.
count int The count.
return void

WriteLine() public method

Writes the line.
public WriteLine ( decimal value ) : void
value decimal The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( double value ) : void
value double The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( float value ) : void
value float The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( int value ) : void
value int The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( long value ) : void
value long The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( string format ) : void
format string The format.
return void

WriteLine() public method

Writes the line.
public WriteLine ( string format, [ arg0 ) : void
format string The format.
arg0 [ The arg0.
return void

WriteLine() public method

Writes the line.
public WriteLine ( string format, [ arg0, [ arg1 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
return void

WriteLine() public method

Writes the line.
public WriteLine ( string format, [ arg0, [ arg1, [ arg2 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
arg2 [ The arg2.
return void

WriteLine() public method

Writes the line.
public WriteLine ( uint value ) : void
value uint The value.
return void

WriteLine() public method

Writes the line.
public WriteLine ( ulong value ) : void
value ulong The value.
return void

WriteLineAsync() public method

Writes a line terminator asynchronously to the text string or stream.
public WriteLineAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WriteLineAsync() public method

Writes a string followed by a line terminator asynchronously to the text string or stream.
public WriteLineAsync ( [ value ) : System.Threading.Tasks.Task
value [ The string to write. If the value is null, only a line terminator is written.
return System.Threading.Tasks.Task

WriteLineAsync() public method

Writes a character followed by a line terminator asynchronously to the text string or stream.
public WriteLineAsync ( char value ) : Task
value char The character to write to the text stream.
return Task

WriteLineAsync() public method

Writes a subarray of characters followed by a line terminator asynchronously to the text string or stream.
public WriteLineAsync ( char buffer, int index, int count ) : Task
buffer char The character array to write data from.
index int The character position in the buffer at which to start retrieving data.
count int The number of characters to write.
return Task