[Mono-list] ldtoken with ByRef, question
    DraconisBG 
    draconisbg at yahoo.com
       
    Fri Nov 21 16:42:09 EST 2008
    
    
  
Well I solved it via calling MakeByRef, too bad it doesnt work when run on
MS.NET:
 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
class...
-- 
View this message in context: http://www.nabble.com/ldtoken-with-ByRef%2C-question-tp20629727p20629989.html
Sent from the Mono - General mailing list archive at Nabble.com.
    
    
More information about the Mono-list
mailing list