As far as I can tell, Mono supports custom marshalling outside of function calls (like PInvoke), - ie using Marshal.StructToPtr and PtrToStruct, but you have to use UnmanagedMarshal.DefineCustom, which would involve reflection of some sort - possibly creating your class with custom marshalled fields by reflection.
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? Is this likely to happen? Alan _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
