From b66d9f436ec67adb46a5a61441111a66f1048990 Mon Sep 17 00:00:00 2001 From: Ondrej Petrzilka Date: Fri, 14 Oct 2016 14:44:50 +0200 Subject: [PATCH] Fitness for compiler generated types is now zero (show them last) --- ILSpy/SearchStrategies.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ILSpy/SearchStrategies.cs b/ILSpy/SearchStrategies.cs index d8340deb3..3556cbae3 100644 --- a/ILSpy/SearchStrategies.cs +++ b/ILSpy/SearchStrategies.cs @@ -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;