Hello:
I'm trying to implement a custom marshaler for a field of an struct, the
field is an array of struct type, but it's not working, i want to know
if this is possible ??
The structure:
[StructLayout(La youtKind.Sequen tial)]
public struct XSQLDA
{
public short version;
[MarshalAs(Unman agedType.ByValT Str, SizeConst=8)]
public string sqldaid;
public int sqldabc;
public short sqln;
public short sqld;
[MarshalAs(Unman agedType.Custom Marshaler,
MarshalTypeRef= typeof(XsqlvarA rrayMarshaler))]
public XSQLVAR[] sqlvar; <-------
}
XsqlvarArrayMar shaler implements ICustomMarshale r interface.
Thanks in advance.
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain
I'm trying to implement a custom marshaler for a field of an struct, the
field is an array of struct type, but it's not working, i want to know
if this is possible ??
The structure:
[StructLayout(La youtKind.Sequen tial)]
public struct XSQLDA
{
public short version;
[MarshalAs(Unman agedType.ByValT Str, SizeConst=8)]
public string sqldaid;
public int sqldabc;
public short sqln;
public short sqld;
[MarshalAs(Unman agedType.Custom Marshaler,
MarshalTypeRef= typeof(XsqlvarA rrayMarshaler))]
public XSQLVAR[] sqlvar; <-------
}
XsqlvarArrayMar shaler implements ICustomMarshale r interface.
Thanks in advance.
--
Best regards
Carlos Guzmán Álvarez
Vigo-Spain