StructReaderReadT(Type, LengthProvider, MaxLengthProvider, ElementsProvider, ConvertSelector) Method

Read.

Definition

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0
C#
public T Read<T>(
	Type t,
	LengthProvider lenpvd,
	MaxLengthProvider maxlenpvd,
	ElementsProvider elmpvd,
	ConvertSelector infpvd
)
where T : class, new()

Parameters

t  Type
Type of what to read.
lenpvd  LengthProvider
Supplies length for fields where it is not given.
maxlenpvd  MaxLengthProvider
Supplies max length for fields where it is not given.
elmpvd  ElementsProvider
Supplies elements for fields where it is not given.
infpvd  ConvertSelector
Supplies selector converter for fields where it is needed.

Type Parameters

T
Type of what to read.

Return Value

T
Object read.

Exceptions

RecordExceptionIf impossible to convert between types in class and struct.

See Also