Browse Source

fix #549: Type "used by" analyzer does not match generics

pull/550/head
Ed Harvey 11 years ago
parent
commit
313f8f679d
  1. 8
      ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs

8
ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs

@ -164,7 +164,13 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
private bool TypeMatches(TypeReference tref) private bool TypeMatches(TypeReference tref)
{ {
return tref != null && analyzedType.ToString() == tref.ToString(); if (tref != null && tref.Name == analyzedType.Name) {
var tdef = tref.Resolve();
if (tdef != null) {
return (tdef == analyzedType);
}
}
return false;
} }
public static bool CanShow(TypeDefinition type) public static bool CanShow(TypeDefinition type)

Loading…
Cancel
Save