C# Класс WebApplications.Utilities.Formatting.SerialTextWriter

Наследование: System.IO.TextWriter, ISerialTextWriter
Показать файл Открыть проект

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

Метод Описание
Close ( ) : void

Closes the current writer and releases any system resources associated with the writer.

Flush ( ) : void

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

Write ( bool value ) : void

Writes the text representation of a Boolean value to the text string or stream.

Write ( char value ) : void

Writes a character to the text string or stream.

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

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

Write ( decimal value ) : void

Writes the text representation of a decimal value to the text string or stream.

Write ( double value ) : void

Writes the text representation of an 8-byte floating-point value to the text string or stream.

Write ( float value ) : void

Writes the text representation of a 4-byte floating-point value to the text string or stream.

Write ( int value ) : void

Writes the text representation of a 4-byte signed integer to the text string or stream.

Write ( long value ) : void

Writes the specified value.

Write ( object value ) : void

Writes the text representation of an object to the text string or stream by calling the ToString method on that object.

Write ( string value ) : void

Writes a string to the text string or stream.

Write ( string format, object arg0 ) : void

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object) method.

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

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object) method.

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

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object,System.Object) method.

Write ( uint value ) : void

Writes the specified value.

Write ( ulong value ) : void

Writes the text representation of an 8-byte unsigned integer to the text string or stream.

WriteLine ( ) : void

Writes a line terminator to the text string or stream.

WriteLine ( bool value ) : void

Writes the text representation of a Boolean value followed by a line terminator to the text string or stream.

WriteLine ( char value ) : void

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

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

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

WriteLine ( decimal value ) : void

Writes the text representation of a decimal value followed by a line terminator to the text string or stream.

WriteLine ( double value ) : void

Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text string or stream.

WriteLine ( float value ) : void

Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text string or stream.

WriteLine ( int value ) : void

Writes the text representation of a 4-byte signed integer followed by a line terminator to the text string or stream.

WriteLine ( long value ) : void

Writes the text representation of an 8-byte signed integer followed by a line terminator to the text string or stream.

WriteLine ( object value ) : void

Writes the text representation of an object by calling the ToString method on that object, followed by a line terminator to the text string or stream.

WriteLine ( string value ) : void

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

WriteLine ( string format, object arg0 ) : void

Writes a formatted string and a new line to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object) method.

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

Writes a formatted string and a new line to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object) method.

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

Writes out a formatted string and a new line, using the same semantics as M:System.String.Format(System.String,System.Object).

WriteLine ( uint value ) : void

Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text string or stream.

WriteLine ( ulong value ) : void

Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text string or stream.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources.

Приватные методы

Метод Описание
FlushAsync ( ) : Task
SerialTextWriter ( [ writer ) : System

Initializes a new instance of the SerialTextWriter class.

WriteAsync ( char value ) : Task
WriteAsync ( char buffer, int index, int count ) : Task
WriteAsync ( string value ) : Task
WriteLineAsync ( char value ) : Task
WriteLineAsync ( char buffer, int index, int count ) : Task
WriteLineAsync ( string value ) : Task

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

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

Closes the current writer and releases any system resources associated with the writer.
public Close ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
Результат void

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

Writes the text representation of a Boolean value to the text string or stream.
public Write ( bool value ) : void
value bool The Boolean value to write.
Результат void

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

Writes a character to the text string or stream.
public Write ( char value ) : void
value char The character to write to the text stream.
Результат void

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

Writes a subarray of characters to the text string or stream.
public Write ( char buffer, int index, int count ) : void
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.
Результат void

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

Writes the text representation of a decimal value to the text string or stream.
public Write ( decimal value ) : void
value decimal The decimal value to write.
Результат void

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

Writes the text representation of an 8-byte floating-point value to the text string or stream.
public Write ( double value ) : void
value double The 8-byte floating-point value to write.
Результат void

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

Writes the text representation of a 4-byte floating-point value to the text string or stream.
public Write ( float value ) : void
value float The 4-byte floating-point value to write.
Результат void

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

Writes the text representation of a 4-byte signed integer to the text string or stream.
public Write ( int value ) : void
value int The 4-byte signed integer to write.
Результат void

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

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

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

Writes the text representation of an object to the text string or stream by calling the ToString method on that object.
public Write ( object value ) : void
value object The object to write.
Результат void

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

Writes a string to the text string or stream.
public Write ( string value ) : void
value string The string to write.
Результат void

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

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object) method.
public Write ( string format, object arg0 ) : void
format string A composite format string (see Remarks).
arg0 object The object to format and write.
Результат void

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

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object) method.
public Write ( string format, object arg0, object arg1 ) : void
format string A composite format string (see Remarks).
arg0 object The first object to format and write.
arg1 object The second object to format and write.
Результат void

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

Writes a formatted string to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object,System.Object) method.
public Write ( string format, object arg0, object arg1, object arg2 ) : void
format string A composite format string (see Remarks).
arg0 object The first object to format and write.
arg1 object The second object to format and write.
arg2 object The third object to format and write.
Результат void

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

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

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

Writes the text representation of an 8-byte unsigned integer to the text string or stream.
public Write ( ulong value ) : void
value ulong The 8-byte unsigned integer to write.
Результат void

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

Writes a line terminator to the text string or stream.
public WriteLine ( ) : void
Результат void

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

Writes the text representation of a Boolean value followed by a line terminator to the text string or stream.
public WriteLine ( bool value ) : void
value bool The Boolean value to write.
Результат void

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

Writes a character followed by a line terminator to the text string or stream.
public WriteLine ( char value ) : void
value char The character to write to the text stream.
Результат void

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

Writes a subarray of characters followed by a line terminator to the text string or stream.
public WriteLine ( char buffer, int index, int count ) : void
buffer char The character array from which data is read.
index int The character position in at which to start reading data.
count int The maximum number of characters to write.
Результат void

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

Writes the text representation of a decimal value followed by a line terminator to the text string or stream.
public WriteLine ( decimal value ) : void
value decimal The decimal value to write.
Результат void

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

Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text string or stream.
public WriteLine ( double value ) : void
value double The 8-byte floating-point value to write.
Результат void

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

Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text string or stream.
public WriteLine ( float value ) : void
value float The 4-byte floating-point value to write.
Результат void

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

Writes the text representation of a 4-byte signed integer followed by a line terminator to the text string or stream.
public WriteLine ( int value ) : void
value int The 4-byte signed integer to write.
Результат void

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

Writes the text representation of an 8-byte signed integer followed by a line terminator to the text string or stream.
public WriteLine ( long value ) : void
value long The 8-byte signed integer to write.
Результат void

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

Writes the text representation of an object by calling the ToString method on that object, followed by a line terminator to the text string or stream.
public WriteLine ( object value ) : void
value object The object to write. If is null, only the line terminator is written.
Результат void

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

Writes a string followed by a line terminator to the text string or stream.
public WriteLine ( string value ) : void
value string The string to write. If is null, only the line terminator is written.
Результат void

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

Writes a formatted string and a new line to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object) method.
public WriteLine ( string format, object arg0 ) : void
format string A composite format string (see Remarks).
arg0 object The object to format and write.
Результат void

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

Writes a formatted string and a new line to the text string or stream, using the same semantics as the M:System.String.Format(System.String,System.Object,System.Object) method.
public WriteLine ( string format, object arg0, object arg1 ) : void
format string A composite format string (see Remarks).
arg0 object The first object to format and write.
arg1 object The second object to format and write.
Результат void

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

Writes out a formatted string and a new line, using the same semantics as M:System.String.Format(System.String,System.Object).
public WriteLine ( string format, object arg0, object arg1, object arg2 ) : void
format string A composite format string (see Remarks).
arg0 object The first object to format and write.
arg1 object The second object to format and write.
arg2 object The third object to format and write.
Результат void

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

Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text string or stream.
public WriteLine ( uint value ) : void
value uint The 4-byte unsigned integer to write.
Результат void

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

Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text string or stream.
public WriteLine ( ulong value ) : void
value ulong The 8-byte unsigned integer to write.
Результат void