We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8353d3 commit e563294Copy full SHA for e563294
ILSpy/Analyzers/Builtin/MemberImplementsInterfaceAnalyzer.cs
@@ -51,7 +51,7 @@ public bool Show(ISymbol symbol)
51
case SymbolKind.Property:
52
var member = (IMember)symbol;
53
var type = member.DeclaringTypeDefinition;
54
- return !member.IsStatic && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);
+ return !member.IsStatic && type is not null && (type.Kind == TypeKind.Class || type.Kind == TypeKind.Struct);
55
56
default:
57
return false;
0 commit comments