C# Class Pomona.NonClosingStreamWriter

A version of StreamWriter that doesn't close the underlying Stream when Disposed. Writes to the underlying Stream with a BOM-less UTF-8 encoding.
Inheritance: System.IO.StreamWriter
Afficher le fichier Open project: Pomona/Pomona Class Usage Examples

Méthodes publiques

Méthode Description
NonClosingStreamWriter ( Stream stream ) : System.IO

Initializes a new instance of the NonClosingStreamWriter class.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Flushes the content of the StreamWriter to the underlying Stream, but does not close it.

Private Methods

Méthode Description
NonClosingStreamWriter ( ) : System.IO

Initializes the NonClosingStreamWriter class.

Method Details

Dispose() protected méthode

Flushes the content of the StreamWriter to the underlying Stream, but does not close it.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

NonClosingStreamWriter() public méthode

Initializes a new instance of the NonClosingStreamWriter class.
public NonClosingStreamWriter ( Stream stream ) : System.IO
stream System.IO.Stream The stream to write to.
Résultat System.IO