StreamHelper Class
Namespace: PTS
Assembly: PTSframework.dll
Provides a set of static methods for Stream
type.
Syntax
public static class StreamHelper
Inheritance
System.Object
StreamHelper
Methods
ToBytes(Stream)
Reads the stream into an array of bytes.
Declaration
public static byte[] ToBytes(this Stream source)
Parameters
Type | Name | Description |
---|---|---|
System. |
source | Source streams to read the data from. |
Returns
Type | Description |
---|---|
System. |
A byte array with data from the source stream. |