Reads a stream into byte array.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static byte[] ReadToEnd(
	this Stream stream
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function ReadToEnd ( 
	stream As Stream
) As Byte()
Visual C++
public:
[ExtensionAttribute]
static array<unsigned char>^ ReadToEnd(
	Stream^ stream
)
F#
static member ReadToEnd : 
        stream : Stream -> byte[] 

Parameters

stream
Type: System.IO..::..Stream
Input stream.

Return Value

Type: array<Byte>[]()[][]
Filled byte array.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also