C# Класс 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.
Наследование: System.IO.TextWriter, ILayoutTextWriter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Flush() публичный Метод

Flushes this instance.
public Flush ( ) : void
Результат void

FlushAsync() публичный Метод

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
Результат System.Threading.Tasks.Task

UnderlyingFormatTextWriter() публичный Метод

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.
Результат System

Write() публичный Метод

Writes the specified buffer.
public Write ( [ buffer ) : void
buffer [ The buffer.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( bool value ) : void
value bool The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( char value ) : void
value char The value.
Результат void

Write() публичный Метод

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.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( decimal value ) : void
value decimal The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( double value ) : void
value double The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( float value ) : void
value float The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( int value ) : void
value int The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( long value ) : void
value long The value.
Результат void

Write() публичный Метод

Writes the specified format.
public Write ( string format ) : void
format string The format.
Результат void

Write() публичный Метод

Writes the specified format.
public Write ( string format, [ arg0 ) : void
format string The format.
arg0 [ The arg0.
Результат void

Write() публичный Метод

Writes the specified format.
public Write ( string format, [ arg0, [ arg1 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
Результат void

Write() публичный Метод

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.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( uint value ) : void
value uint The value.
Результат void

Write() публичный Метод

Writes the specified value.
public Write ( ulong value ) : void
value ulong The value.
Результат void

WriteAsync() публичный Метод

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.
Результат System.Threading.Tasks.Task

WriteAsync() публичный Метод

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.
Результат System.Threading.Tasks.Task

WriteAsync() публичный Метод

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.
Результат System.Threading.Tasks.Task

WriteLine() публичный Метод

Writes the line.
public WriteLine ( ) : void
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( [ buffer ) : void
buffer [ The buffer.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( bool value ) : void
value bool The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( char value ) : void
value char The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( char buffer, int index, int count ) : void
buffer char The buffer.
index int The index.
count int The count.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( decimal value ) : void
value decimal The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( double value ) : void
value double The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( float value ) : void
value float The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( int value ) : void
value int The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( long value ) : void
value long The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( string format ) : void
format string The format.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( string format, [ arg0 ) : void
format string The format.
arg0 [ The arg0.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( string format, [ arg0, [ arg1 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( string format, [ arg0, [ arg1, [ arg2 ) : void
format string The format.
arg0 [ The arg0.
arg1 [ The arg1.
arg2 [ The arg2.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( uint value ) : void
value uint The value.
Результат void

WriteLine() публичный Метод

Writes the line.
public WriteLine ( ulong value ) : void
value ulong The value.
Результат void

WriteLineAsync() публичный Метод

Writes a line terminator asynchronously to the text string or stream.
public WriteLineAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

WriteLineAsync() публичный Метод

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.
Результат System.Threading.Tasks.Task

WriteLineAsync() публичный Метод

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.
Результат Task

WriteLineAsync() публичный Метод

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.
Результат Task