Util2WriteAllT(Type, IListT, Stream, LengthProvider, MaxLengthProvider, ElementsProvider) Method

Write List of objects into array of struct in stream.

Definition

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0
C#
public static void WriteAll<T>(
	Type t,
	IList<T> lst,
	Stream stm,
	LengthProvider lenpvd,
	MaxLengthProvider maxlenpvd,
	ElementsProvider elmpvd
)

Parameters

t  Type
Type.
lst  IListT
list of object.
stm  Stream
Stream.
lenpvd  LengthProvider
Length provider.
maxlenpvd  MaxLengthProvider
Max length provider.
elmpvd  ElementsProvider
Element provider.

Type Parameters

T
Type.

Exceptions

RecordExceptionIf problem with record definition.
IOExceptionIf problem with stream.

See Also