Editar

Compartilhar via


StreamExtensions.Write<T>(Stream, T) Method

Definition

Writes a value of a specified type into a target Stream instance.

public static void Write<T> (this System.IO.Stream stream, in T value) where T : struct;
static member Write : System.IO.Stream * 'T -> unit (requires 'T : struct)
<Extension()>
Public Sub Write(Of T As Structure) (stream As Stream, ByRef value As T)

Type Parameters

T

The type of value to write.

Parameters

stream
Stream

The target Stream instance to write to.

value
T

The input value to write to stream.

Applies to