Hello
I have base type "Base" in assembly "A" and derived type "Child" in assembly "B".
I'm using FxCop to find in assembly "B" types derived from "Base" like this:
var baseAssemblyNode = AssemblyNode.GetAssembly("A.dll"), true, true, false);
var baseType = baseAssemblyNode.Types.Single(t => t.Name.Name == "Base");
var assemblyNode = AssemblyNode.GetAssembly("B.dll"), true, true, false);
var derivedTypes = assemblyNode.Types.Where(t => t.IsDerivedFrom(baseType));
But the result collection is empty.
I found type "Child" manually and saw that it's base type is not equal to found "Base" type.
It was expected cause these type nodes are different objects, but in depth in Name property they have equal UniqueKey and Name - I expected that FxCop performs comparison for types in IsDerivedMethod by these properties. But it doesn't work.
What are the options to solve this problem?