UnmanagedMarshal.DefineCustom
| Newsgroups | gmane.comp.gnu.dotgnu.developer |
|---|---|
| Message-ID | <[email protected]> |
Rhys, Can we get a version of System.Reflection.Emit.UnmanagedMarshal.DefineCustom, for pnet please? http://tinyurl.com/2f34v Paolo implemented a version for Mono that is very useful to us. Details here: http://tinyurl.com/2jljq I tried to use the DefineUnmanagedMarshal static method, but that is only meant for simple types apparently. The other option was to use a CustomAttributeBuilder, but this did not work with mono and pnet hasn't implemented it yet. I imagine CustomAttributeBuilder is the correct way to do this with .NET since they don't have a DefineCustom either. Adam PS Actually, what would be best would be a CustomAttributeBuilder for both which allowed a MarshalByRef CustomMarshaler to be attached via Reflection.Emit .. This is how MS.NET handles it AFAIK.