Read array of struct in stream into List of objects.
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,
IList<T> lst
)
where T : class, new()
Public Shared Sub ReadAll(Of T As {Class, New}) ( _
t As Type, _
stm As Stream, _
lst As IList(Of T) _
)
public:
generic<typename T>
where T : ref class, gcnew()
static void ReadAll(
Type^ t,
Stream^ stm,
IList<T>^ lst
)
Parameters
- t
- Type
Type.
- stm
- Stream
Stream.
- lst
- IList<(Of <(<'T>)>)>
List of objects.
Type Parameters
Exceptions
See Also