Fix S3655 FP: Recognize ??= for nullable types #7308
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
The
??=
doesn't call propertyint?.HasValue
, but invokesint?.HasValue.get
method instead.We need to recognize that in the engine and make them behave the same.
The text was updated successfully, but these errors were encountered: