ReadAll Generic Method

Vajhoej Record

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
Read array of struct in stream and processes them by handler. 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 ReadAll<T>(
	Type t,
	Stream stm,
	Util..::..ObjectHandlerProcess<T> ohp
)
where T : class, new()
Public Shared Sub ReadAll(Of T As {Class, New}) ( _
	t As Type, _
	stm As Stream, _
	ohp As Util..::..ObjectHandlerProcess(Of T) _
)
public:
generic<typename T>
where T : ref class, gcnew()
static void ReadAll(
	Type^ t, 
	Stream^ stm, 
	Util..::..ObjectHandlerProcess<T>^ ohp
)

Parameters

t
Type
Type.
stm
Stream
Stream.
ohp
Util..::..ObjectHandlerProcess<(Of <(<'T>)>)>
Processor of objects.

Type Parameters

T
Type.

Exceptions

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

See Also