KGy SOFT

StreamExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the Stream type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesStreamExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class StreamExtensions

The StreamExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCopyTo(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.
Public methodStatic memberCopyTo(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.
Public methodStatic memberToArray
Converts a stream to array of bytes. If the stream can be sought, its position will be the same as before calling this method.
Top
See Also

Reference