Hi all,
I read some Q&As in the Net, discussing Marshalization of nested
structs in C# (or VB.NET). Some guys stated that .NET framework does
not support this feature yet. Are they right?
BTW, by nested structs I mean structures such as this:
[StructLayout(LayoutKind.Sequential)]
struct InnerStruct
{
Int32 member1;
....
};
struct OuterStruct
{
Int32 member1;
....
[MarshalAs(UnmanagedType.ByValArray, SizeConst=15)]
InnerStruct[] innerStruct;
};
I tried marshaling the above code, and I receivied an error message
when I tried to get the size of OuterStruct using Marshal.SizeOf()
function.
Is there a way to work around this?
(If possible, please give more more than just some hints, 'coz I'm
totally new to marshaling)
Thnx in advanced
MSD.