I am having issues trying to create a instruction to 
call Nullable<Boolean>.Value

The closest I have come is by using the following code as it will generate 
ILCode that appears to be almost identical to what it was originally. I 
have also included the Test.exe that I am modifying, In this example I am 
replacing a call to Nullable<Boolean>.Value that was generated from the 
compiler with one generated by Mono.Cecil, but I am getting the following 
error when trying to run the modified executable.

https://gist.github.com/7H3LaughingMan/311662c07b8bf8f8d2c6
https://dl.dropboxusercontent.com/u/7231478/Test.exe

Unhandled Exception: System.TypeLoadException: Could not load type 
'System.Nullable`1' from assembly 'Test, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=null' due to value type mismatch.
   at Test.Program.Main(String[] args)

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to