WriteAll Generic Method

Vajhoej Record

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
Write List of objects into array of struct in stream. 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 void WriteAll<T>(
	Type t,
	IList<T> lst,
	Stream stm
)
Public Shared Sub WriteAll(Of T) ( _
	t As Type, _
	lst As IList(Of T), _
	stm As Stream _
)
public:
generic<typename T>
static void WriteAll(
	Type^ t, 
	IList<T>^ lst, 
	Stream^ stm
)

Parameters

t
Type
Type.
lst
IList<(Of <(<'T>)>)>
list of object.
stm
Stream
Stream.

Type Parameters

T
Type.

Exceptions

ExceptionCondition
Vajhoej.Record..::..RecordExceptionIf problem with record definition.
System.IO..::..IOExceptionIf problem with stream.

See Also