Browse Source

Adjust fitness calculation for desctructors

pull/2344/head
MikeFH 4 years ago
parent
commit
3a8f0db0a1
  1. 4
      ILSpy/Search/AbstractEntitySearchStrategy.cs

4
ILSpy/Search/AbstractEntitySearchStrategy.cs

@ -77,9 +77,9 @@ namespace ICSharpCode.ILSpy.Search @@ -77,9 +77,9 @@ namespace ICSharpCode.ILSpy.Search
return 0;
}
// Constructors always have the same name in IL:
// Constructors and destructors always have the same name in IL:
// Use type name instead
if (text == ".cctor" || text == ".ctor")
if (member.SymbolKind == SymbolKind.Constructor || member.SymbolKind == SymbolKind.Destructor)
{
text = member.DeclaringType.Name;
}

Loading…
Cancel
Save