Fix S1144 FP: Diagnostic doesn't respect reflection with DynamicallyAccessedMembers
attribute
#9379
Labels
Milestone
DynamicallyAccessedMembers
attribute
#9379
Description
Diagnostic S1144 doesn't respect reflection even though the generic parameter is annotated with the
DynamicallyAccessedMembers
attribute.Related: #7774
Repro steps
This is a minified repro. In my actuall use case I called
UseMiddleware
.Expected behavior
No warning.
Actual behavior
Warning S1144
Known workarounds
Supress the issue
Related information
SonarAnalyzer.CSharp Version=9.26.0.92422
The text was updated successfully, but these errors were encountered: