UtilCopyAllT1, T2(Type, Byte, Type, UtilTransformerConvertT1, T2) Method
Convert array of struct in bytes into array of struct in bytes.
Namespace: Vajhoej.RecordAssembly: Record (in Record.dll) Version: 0.0.0.0
public static byte[] CopyAll<T1, T2>(
Type t1,
byte[] b,
Type t2,
UtilTransformerConvert<T1, T2> cvt
)
where T1 : class, new()
Public Shared Function CopyAll(Of T1 As {Class, New}, T2) (
t1 As Type,
b As Byte(),
t2 As Type,
cvt As UtilTransformerConvert(Of T1, T2)
) As Byte()
Dim t1 As Type
Dim b As Byte()
Dim t2 As Type
Dim cvt As UtilTransformerConvert(Of T1, T2)
Dim returnValue As Byte()
returnValue = Util.CopyAll(t1, b,
t2, cvt)
public:
generic<typename T1, typename T2>
where T1 : ref class, gcnew()
static array<unsigned char>^ CopyAll(
Type^ t1,
array<unsigned char>^ b,
Type^ t2,
UtilTransformerConvert<T1, T2>^ cvt
)
static member CopyAll :
t1 : Type *
b : byte[] *
t2 : Type *
cvt : UtilTransformerConvert<'T1, 'T2> -> byte[] when 'T1 : not struct, new()
- t1 Type
- From type.
- b Byte
- From byte array.
- t2 Type
- To type.
- cvt UtilTransformerConvertT1, T2
- Converter of objects.
- T1
- From type.
- T2
- To type.
ByteTo byte array.