Browse Source

LookupIndexers should ignore explicit interface implementations.

pull/1030/head
Siegfried Pammer 7 years ago
parent
commit
e3dd2f6d86
  1. 2
      ICSharpCode.Decompiler/CSharp/Resolver/MemberLookup.cs

2
ICSharpCode.Decompiler/CSharp/Resolver/MemberLookup.cs

@ -417,7 +417,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver @@ -417,7 +417,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver
IType targetType = targetResolveResult.Type;
bool allowProtectedAccess = IsProtectedAccessAllowed(targetResolveResult);
Predicate<IProperty> filter = p => p.IsIndexer;
Predicate<IProperty> filter = p => p.IsIndexer && !p.IsExplicitInterfaceImplementation;
List<LookupGroup> lookupGroups = new List<LookupGroup>();
foreach (IType type in targetType.GetNonInterfaceBaseTypes()) {

Loading…
Cancel
Save