[Mono-list] Custom marshalling
Sun, 25 Jul 2004 22:12:08 +0000
As far as I can tell, Mono supports custom marshalling outside of functio=
calls (like PInvoke), - ie using Marshal.StructToPtr and PtrToStruct, bu=
you have to use UnmanagedMarshal.DefineCustom, which would involve reflec=
of some sort - possibly creating your class with custom marshalled fields=
Does UnmanagedMarshal.DefineCustom work?
Is it efficient (as far as custom marshalling can be)?
Is it supported (or undocumented and likely to disappear/break)?
Would it be (technically) possible to access its functionality through an=
attribute, in the same way that non-custom marshalling is done? =20
Is this likely to happen?