> var intq = assembly.MainModule.Import(typeof(int?)); > var ntor = intq.Constructors[0];
Oops. I now see that this won't work because Import gives a TypeRef, while Constructors needs a TypeDef. Sorry. But I do see the error; ReflectionHelper.ImportMethodBase, line 367, gets parameters from the closed method. Hmm. There doesn't seem to be an easy way to get the original declared (open) method from it. Lovely. --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
