that makes for less code which i like but did not fix the issue.
I still get the same IL

On Thu, Jun 10, 2010 at 6:46 PM, Jb Evain <[email protected]> wrote:
> On Wed, Jun 9, 2010 at 1:59 PM, Simon <[email protected]> wrote:
>>        private static TypeDefinition
>> TypeReferenceToTypeDefinition(TypeReference baseType)
>>        {
>>            var defaultAssemblyResolver = new
>> DefaultAssemblyResolver();
>>            var baseTypeAssembly =
>> defaultAssemblyResolver.Resolve(baseType.Scope as
>> AssemblyNameReference);
>>            return
>> baseTypeAssembly.MainModule.GetType(baseType.FullName);
>>        }
>
> I suspect part of the issue is with this. When looking into the base
> type for your method, this will open another assembly.
>
> Just call baseType.Resolve ();
>
> --
> Jb Evain  <[email protected]>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to