Many thanks once again! :)

On May 24, 11:16 am, Jb Evain <[email protected]> wrote:
> Hey,
>
> On Sat, May 22, 2010 at 6:50 PM, Timwi <[email protected]> wrote:
> > The TypeReference.Scope property refers to
> > mscorlib version 4.0 in one case, and version 4.0.0.0 in the other
>
> That should not happen anymore with the latest versions. If you find a
> case where the corlib has a 4.0 version instead of 4.0.0.0, please
> post a repro.
>
> > What other options do I have?
>
> It's not really hard, to compare two type references, you can first
> compare its namespace and its name. If they're not equal, the types
> are different. If they're equal, you need to compare their assembly.
> If the Scope is a ModuleDefinition, then you compare its
> module.Assembly.Name.FullName, if it's an AssemblyNameReference, you
> can just use its FullName.
>
> --
> Jb Evain  <[email protected]>
>
> --
> --
> mono-cecil

-- 
--
mono-cecil

Reply via email to