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

Write List of objects into array of struct in byte array.

Definition

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

Parameters

t  Type
Type.
lst  IListT
List of objects.
lenpvd  LengthProvider
Length provider.
maxlenpvd  MaxLengthProvider
Max length provider.
elmpvd  ElementsProvider
Element provider.

Type Parameters

T
Type.

Return Value

Byte
Byte array.

Exceptions

RecordExceptionIf problem with record definition.

See Also