CopyAll Generic Method

Vajhoej Record

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

Namespace: Vajhoej.Record
Assembly: Record (in Record.dll) Version: 0.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void CopyAll<T1, T2>(
	Type t1,
	Stream instm,
	Type t2,
	Stream outstm,
	Util..::..TransformerConvert<T1, T2> cvt
)
where T1 : class, new()
Public Shared Sub CopyAll(Of T1 As {Class, New}, T2) ( _
	t1 As Type, _
	instm As Stream, _
	t2 As Type, _
	outstm As Stream, _
	cvt As Util..::..TransformerConvert(Of T1, T2) _
)
public:
generic<typename T1, typename T2>
where T1 : ref class, gcnew()
static void CopyAll(
	Type^ t1, 
	Stream^ instm, 
	Type^ t2, 
	Stream^ outstm, 
	Util..::..TransformerConvert<T1, T2>^ cvt
)

Parameters

t1
Type
From type.
instm
Stream
From stream.
t2
Type
To type.
outstm
Stream
To stream.
cvt
Util..::..TransformerConvert<(Of <(<'T1, T2>)>)>
Converter of objects.

Type Parameters

T1
From type.
T2
To type.

Exceptions

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

See Also