Hi, On Tue, Jul 12, 2011 at 2:19 PM, Hendry Luk <[email protected]> wrote: > I'm actually trying to compare the equality between a TypeDefinition and > System.Reflection.Type. The following does not work: > > Equals(typeDef, typeDef.Module.Resolve(type)) > > It returns true in some cases, but occasionally it returns false (even > though they're the same type).
It works if you make sure that you're loading assemblies once. This means that you have to pass the same resolver to each assembly. > Is there any proper way to achieve this? Another is to compare by scope + fullname. Jb -- -- mono-cecil
