Hy,

I believe this is because Reflection gives the instantiated constructor :

Just Try :

ConstructorInfo myConstructor = typeof(int?).GetConstructors()[0];
Console.WriteLine(myConstructor .ToString());

This prints "Void .ctor(Int32)"

I think you should try with the "original" type :
GetType("System.Nullable`1").GetConstructors()[0];

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

Reply via email to