C# Class StreamWriteTo, extensions

Provides WriteTo extension methods to write streams easily to another steam or a target file.
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode Description
WriteTo ( this source, Stream target ) : Stream

Writes the input stream to the target stream.

WriteTo ( this source, Stream target ) : void

Writes the input stream to the target stream.

WriteTo ( this source, string targetFile, bool append = false ) : void

Writes the input stream to the target file.

Method Details

WriteTo() public static méthode

Writes the input stream to the target stream.
public static WriteTo ( this source, Stream target ) : Stream
source this
target Stream
Résultat Stream

WriteTo() public static méthode

Writes the input stream to the target stream.
public static WriteTo ( this source, Stream target ) : void
source this The source stream to write to the target stream.
target Stream The target stream to write to.
Résultat void

WriteTo() public static méthode

Writes the input stream to the target file.
public static WriteTo ( this source, string targetFile, bool append = false ) : void
source this The source stream to write to the target file.
targetFile string The target file to write to.
append bool If set to and the file exists, then appends the source stream, otherwise, it will overwrite it.
Résultat void