UnmanagedMarshal.DefineCustom

Adam Treat <manyoso-/[email protected]> (by way of Adam Treat <manyoso-/[email protected]>)
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.