Create a binary writer that won't close our stream

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

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

Parameters

s
Type: Stream

<default>

Return Value

Type: BinaryWriter

.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