On 12/10/08, Tuna Toksöz <[EMAIL PROTECTED]> wrote:
> I have shorten what you have with linq.

This proposal is not going to fly.

> definition.ParameterType.Module.Types.Cast<TypeDefinition>().First(
>                 x => x.FullName ==
> definition.ParameterType.FullName);
>  however, debugger says that
>
> definition.ParameterType.Module gives the module with
> assembly
> +        Assembly    {xx.yy.zz, Version=1.0.0.0, Culture=neutral,
> PublicKeyToken=null}    Mono.Cecil.AssemblyDefinition
>
> eventhough I should have had mscorlib.

You're facing a pure TypeReference. So it's not a TypeDefinition. But
the TypeReference is used is the assembly xx.yy.zz, so its module is
indeed the one of xx.yy.zz.

But the TypeReference is defined in the assembly mscorlib, which you
could see using type.Scope.

-- 
Jb Evain  <[EMAIL PROTECTED]>

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

Reply via email to