Skip to content

Possible incorrect use of "NOT ... OR ..." pattern #14072

@GrabYourPitchforks

Description

@GrabYourPitchforks

Our internal tools are flagging these blocks of code as potentially improper use of the not ... or ... pattern matching syntax.

return uc is not UnicodeCategory.Control
or UnicodeCategory.Format
or UnicodeCategory.LineSeparator
or UnicodeCategory.ParagraphSeparator
or UnicodeCategory.OtherNotAssigned;

See dotnet/roslyn#75506 for more information on why this pattern is being flagged. If this logic is correct, consider restructuring it to use clarifying () parentheses.

Metadata

Metadata

Assignees

Labels

area-VSDesignerWindows Forms out-of-proc designer related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions