WriteAll Generic Method

Vajhoej Record

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
Write List of objects into array of struct in byte array. Note: does not work with stucts containing VARSTR fields and STRUCT fields.

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public static byte[] WriteAll<T>(
	Type t,
	IList<T> lst
)
Public Shared Function WriteAll(Of T) ( _
	t As Type, _
	lst As IList(Of T) _
) As Byte()
public:
generic<typename T>
static array<unsigned char>^ WriteAll(
	Type^ t, 
	IList<T>^ lst
)

Parameters

t
Type
Type.
lst
IList<(Of <(<'T>)>)>
List of objects.

Type Parameters

T
Type.

Return Value

Byte array.

Exceptions

ExceptionCondition
Vajhoej.Record..::..RecordExceptionIf problem with record definition.

See Also