I never managed to solve the bug--instead, I ended up emitting a whole
non-generic singleton class implementation. It wasn't pretty, but it
definitely worked :)

On Mon, Apr 13, 2009 at 4:22 AM, Lotfi Gheribi <[email protected]> wrote:
>
>> // Call the Singelton<TFactory, TService>.Instance
>>            var genericSingletonType = module.Import(typeof
>> (Singleton<,>));
>
> I don't know why, but it seams that the Import method doesn't import
> generic parameter constraints :s
>
> var genericSingletonType = module.Import(typeof(Singleton<,>));
>
> >
>

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

Reply via email to