Thanks Mark
I have shorten what you have with linq.

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.

On Wed, Dec 10, 2008 at 3:40 AM, Mark Cidade (GMail) <[EMAIL PROTECTED]>wrote:

> td.FullName == definition.ParameterType.FullNam




-- 
Tuna Toksöz
http://tunatoksoz.com

Typos included to enhance the readers attention!

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

Reply via email to