C# Класс StreamWriteTo, extensions

Provides WriteTo extension methods to write streams easily to another steam or a target file.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

WriteTo() публичный статический Метод

Writes the input stream to the target stream.
public static WriteTo ( this source, Stream target ) : Stream
source this
target Stream
Результат Stream

WriteTo() публичный статический Метод

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.
Результат void

WriteTo() публичный статический Метод

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.
Результат void