>
> Then just pass `ntor` to newobj :)
>

That was the first thing I tried before getting crazy trying to understand
the generic instances types and methods. I had no lucky. It generates:

newobj instance
void<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Void>[
mscorlib<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e>
]System.Nullable`1<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Nullable<>>
<int32<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Int32>
>::.ctor<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Nullable<>/.ctor(Int32)>
(int32<http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.5.0:7cec85d7bea7798e/System.Int32>
)

Which fails with:

System.MissingMethodException: Method not found: 'Void
System.Nullable`1..ctor(Int32)'.

When I try to use it. Perhaps I'm missing something else?

Augusto

--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---

Reply via email to