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.IO.Stream | source | Source streams to read the data from. |
Returns
Type | Description |
---|---|
System.Byte[] | A byte array with data from the source stream. |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()