Browse Source

Fitness for compiler generated types is now zero (show them last)

pull/668/head
Ondrej Petrzilka 9 years ago
parent
commit
b66d9f436e
  1. 6
      ILSpy/SearchStrategies.cs

6
ILSpy/SearchStrategies.cs

@ -32,6 +32,12 @@ namespace ICSharpCode.ILSpy @@ -32,6 +32,12 @@ namespace ICSharpCode.ILSpy
protected float CalculateFitness(MemberReference member, string text)
{
// Probably compiler generated types without meaningful names, show them last
if (text.StartsWith("<"))
{
return 0;
}
// Ignore generic arguments, it not possible to search based on them either
int length = 0;
int generics = 0;

Loading…
Cancel
Save