C# Class StreamWriteTo, extensions

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

Public Methods

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

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

WriteTo() public static method

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

WriteTo() public static method

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