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

Reply via email to