Create a binary reader that won't close our stream

Namespace: Contracts
Assembly: Contracts (in Contracts.dll)

Public Shared Function CreateBinaryReader( _ 
ByVal s As Stream
) As BinaryReader
This language is not supported or no code example is available.
public static BinaryReader CreateBinaryReader( 
Stream s 
)
This language is not supported or no code example is available.
public:  
static BinaryReader^ CreateBinaryReader( 
Stream^ s 
)
This language is not supported or no code example is available.
public static function CreateBinaryReader( 
s : Stream 
) : BinaryReader;
This language is not supported or no code example is available.

Parameters

s
Type: Stream

<default>

Return Value

Type: BinaryReader

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1