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
Afficher le fichier Open project: webappsuk/CoreLibraries

Méthodes publiques

Méthode 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 méthode

Flushes this instance.
public Flush ( ) : void
Résultat void

FlushAsync() public méthode

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
Résultat System.Threading.Tasks.Task

UnderlyingFormatTextWriter() public méthode

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.
Résultat System

Write() public méthode

Writes the specified buffer.
public Write ( [ buffer ) : void
buffer [ The buffer.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( bool value ) : void
value bool The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( char value ) : void
value char The value.
Résultat void

Write() public méthode

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.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( decimal value ) : void
value decimal The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( double value ) : void
value double The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( float value ) : void
value float The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( int value ) : void
value int The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( long value ) : void
value long The value.
Résultat void

Write() public méthode

Writes the specified format.
public Write ( string format ) : void
format string The format.
Résultat void

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( uint value ) : void
value uint The value.
Résultat void

Write() public méthode

Writes the specified value.
public Write ( ulong value ) : void
value ulong The value.
Résultat void

WriteAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

WriteAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

WriteAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

WriteLine() public méthode

Writes the line.
public WriteLine ( ) : void
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( [ buffer ) : void
buffer [ The buffer.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( bool value ) : void
value bool The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( char value ) : void
value char The value.
Résultat void

WriteLine() public méthode

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

WriteLine() public méthode

Writes the line.
public WriteLine ( decimal value ) : void
value decimal The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( double value ) : void
value double The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( float value ) : void
value float The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( int value ) : void
value int The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( long value ) : void
value long The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( string format ) : void
format string The format.
Résultat void

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

Writes the line.
public WriteLine ( uint value ) : void
value uint The value.
Résultat void

WriteLine() public méthode

Writes the line.
public WriteLine ( ulong value ) : void
value ulong The value.
Résultat void

WriteLineAsync() public méthode

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

WriteLineAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

WriteLineAsync() public méthode

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.
Résultat Task

WriteLineAsync() public méthode

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.
Résultat Task