[Mono-list] ldtoken with ByRef, question
kumpera at gmail.com
Fri Nov 21 16:58:37 EST 2008
As you have found out ldtoken can only reference types and not type
Could you post an example of you test that throws an exception under MS and
not under mono, please?
On Fri, Nov 21, 2008 at 7:42 PM, DraconisBG <draconisbg at yahoo.com> wrote:
> Well I solved it via calling MakeByRef, too bad it doesnt work when run on
> if (argtypes[j].IsByRef)
> ilgen.Emit(OpCodes.Call, makeByRefType);
> I realized ldtoken cant produce int32&, as ByRef is actually nothing else
> than an address.
> The above solution runs on Mono properly. MS.NET throws a
> NotSupportedException, saying that "MakeByRefType" is not supported for the
> View this message in context:
> Sent from the Mono - General mailing list archive at Nabble.com.
> Mono-list maillist - Mono-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list