C# Class WebApplications.Utilities.Formatting.SerialTextWriter

Inheritance: System.IO.TextWriter, ISerialTextWriter
显示文件 Open project: webappsuk/CoreLibraries

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Private Methods

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

Method Details

Close() public method

Closes the current writer and releases any system resources associated with the writer.
public Close ( ) : void
return void

Dispose() protected method

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

Flush() public method

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
public Flush ( ) : void
return void

Write() public method

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

Write() public method

Writes a character to the text string or stream.
public Write ( char value ) : void
value char The character to write to the text stream.
return void

Write() public method

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

Write() public method

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

Write() public method

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

Write() public method

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

Write() public method

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

Write() public method

Writes a string to the text string or stream.
public Write ( string value ) : void
value string The string to write.
return void

Write() public method

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

Write() public method

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

Write() public method

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

WriteLine() public method

Writes a line terminator to the text string or stream.
public WriteLine ( ) : void
return void

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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

WriteLine() public method

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