ReadAll Generic Method

Vajhoej Record

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
Read array of struct in stream into List of objects.

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,
	IList<T> lst,
	LengthProvider lenpvd,
	MaxLengthProvider maxlenpvd,
	ElementsProvider elmpvd
)
where T : class, new()
Public Shared Sub ReadAll(Of T As {Class, New}) ( _
	t As Type, _
	stm As Stream, _
	lst As IList(Of T), _
	lenpvd As LengthProvider, _
	maxlenpvd As MaxLengthProvider, _
	elmpvd As ElementsProvider _
)
public:
generic<typename T>
where T : ref class, gcnew()
static void ReadAll(
	Type^ t, 
	Stream^ stm, 
	IList<T>^ lst, 
	LengthProvider^ lenpvd, 
	MaxLengthProvider^ maxlenpvd, 
	ElementsProvider^ elmpvd
)

Parameters

t
Type
Type.
stm
Stream
Stream.
lst
IList<(Of <(<'T>)>)>
List of objects.
lenpvd
LengthProvider
Length provider.
maxlenpvd
MaxLengthProvider
Max length provider.
elmpvd
ElementsProvider
Element provider.

Type Parameters

T
Type.

Exceptions

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

See Also