Browse Source

Merge pull request #2344 from MikeFH/adjust_fitness_calc

Adjust fitness calculation for desctructors
pull/2352/head
Siegfried Pammer 4 years ago committed by GitHub
parent
commit
60035befbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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