UtilReadAllT(Type, Stream, UtilObjectHandlerProcessT) Method

Read array of struct in stream and processes them by handler. Note: does not work with stucts containing VARSTR fields and STRUCT fields.

Definition

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0
C#
public static void ReadAll<T>(
	Type t,
	Stream stm,
	UtilObjectHandlerProcess<T> ohp
)
where T : class, new()

Parameters

t  Type
Type.
stm  Stream
Stream.
ohp  UtilObjectHandlerProcessT
Processor of objects.

Type Parameters

T
Type.

Exceptions

RecordExceptionIf problem with record definition.
IOExceptionIf problem with stream.

See Also