Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 678 Bytes

RCS1096.md

File metadata and controls

36 lines (23 loc) · 678 Bytes

RCS1096: Convert 'HasFlag' call to bitwise operation (or vice versa)

Property Value
Id RCS1096
Category Performance
Severity Info

Example

Code with Diagnostic

options.HasFlag(RegexOptions.IgnoreCase)

Code with Fix

(options & RegexOptions.IgnoreCase) != 0

Options

Convert bitwise operation to 'HasFlag' call

roslynator.RCS1096.invert = true

See Also

(Generated with DotMarkdown)