Code Analysis ReferenceAnalyzersRCS1156On this pageRCS1156: Use string.Length instead of comparison with empty stringPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csif (s == ""){}fix.csif (s?.Length == 0){}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers