Code Analysis ReferenceAnalyzersRCS1049On this pageRCS1049: Simplify boolean comparisonPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csbool f = false;// ...if (f == false){}if (f != true){}fix.csif (!f){}if (!f){}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers