diff --git a/ILSpy/SearchStrategies.cs b/ILSpy/SearchStrategies.cs index a351ff680..2f1f1ff69 100644 --- a/ILSpy/SearchStrategies.cs +++ b/ILSpy/SearchStrategies.cs @@ -139,6 +139,10 @@ namespace ICSharpCode.ILSpy Add(type.Properties, type, language, addResult, IsMatch, p => PropertyTreeNode.GetIcon(p)); Add(type.Events, type, language, addResult, IsMatch, EventTreeNode.GetIcon); Add(type.Methods.Where(NotSpecialMethod), type, language, addResult, IsMatch, MethodTreeNode.GetIcon); + + foreach (TypeDefinition nestedType in type.NestedTypes) { + Search(nestedType, language, addResult); + } } bool NotSpecialMethod(MethodDefinition arg) @@ -424,11 +428,6 @@ namespace ICSharpCode.ILSpy }); } - foreach (TypeDefinition nestedType in type.NestedTypes) - { - Search(nestedType, language, addResult); - } - base.Search(type, language, addResult); }