StreamExtensions Class

Provides extension methods for the Stream type.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
C#
public static class StreamExtensions
Inheritance
Object    StreamExtensions

Methods

CopyTo(Stream, Stream) Copies the source Stream into the destination one. Copy begins on the current position of source stream. None of the streams are closed or sought after the end of the copy progress.
CopyTo(Stream, Stream, Int32) Copies the source Stream into the destination one. Copy begins on the current position of source stream. None of the streams are closed or sought after the end of the copy progress.
ToArray Converts a stream to array of bytes. If the stream can be sought, its position will be the same as before calling this method.

See Also