Code Analysis ReferenceAnalyzersRCS1171On this pageRCS1171: Simplify lazy initializationPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.cspublic object Foo(){ if (_foo == null) { _foo = Initialize(); } return _foo;}fix.cspublic object Foo(){ return _foo ?? (_foo = Initialize());}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers