From a8f25c23c243793d931d8e88e55c463a61c4e7fa Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 29 Jul 2022 18:34:28 +0200 Subject: [PATCH] Fix #2751: Use correct icon for MemberSearchResult. This has been broken since the ILSpyX refactoring. --- ILSpy/Search/SearchResultFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ILSpy/Search/SearchResultFactory.cs b/ILSpy/Search/SearchResultFactory.cs index 7f2873f912..63db8e9091 100644 --- a/ILSpy/Search/SearchResultFactory.cs +++ b/ILSpy/Search/SearchResultFactory.cs @@ -106,7 +106,7 @@ public MemberSearchResult Create(IEntity entity) Location = declaringType != null ? language.TypeToString(declaringType, includeNamespace: true) : entity.Namespace, Assembly = entity.ParentModule.FullAssemblyName, ToolTip = entity.ParentModule.PEFile?.FileName, - Image = Images.Assembly, + Image = GetIcon(entity), LocationImage = declaringType != null ? TypeTreeNode.GetIcon(declaringType) : Images.Namespace, AssemblyImage = Images.Assembly, };