C# Class WebApplications.Utilities.Formatting.SerialTextWriter

Inheritance: System.IO.TextWriter, ISerialTextWriter
Afficher le fichier Open project: webappsuk/CoreLibraries

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Private Methods

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

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

Dispose() protected méthode

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

Flush() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

Write() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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

WriteLine() public méthode

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