Skip to content

Commit 8f72762

Browse files
committed
suppress warning CS8602
1 parent 557a9f9 commit 8f72762

File tree

1 file changed

+4
-0
lines changed
  • src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating

1 file changed

+4
-0
lines changed

src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating/Generator.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,11 @@ static void AppendMethodModifiers(StringBuilder sb, MethodBase? m)
11831183
else if (
11841184
m is MethodInfo methodMayBeAccessor &&
11851185
methodMayBeAccessor.TryGetPropertyFromAccessorMethod(out var p) &&
1186+
#if !NULL_STATE_STATIC_ANALYSIS_ATTRIBUTES
1187+
#pragma warning disable CS8602
1188+
#endif
11861189
p.GetAccessors(nonPublic: true).Any(static a => a.IsVirtual && !a.IsFinal)
1190+
#pragma warning restore CS8602
11871191
) {
11881192
sb.Append("virtual ");
11891193
}

0 commit comments

Comments
 (0)