dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]UnmanagedMarshal.DefineCustom


From: Adam Treat
Subject: [DotGNU]UnmanagedMarshal.DefineCustom
Date: Fri, 25 Jun 2004 10:41:53 -0400
User-agent: KMail/1.6.2

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]