Code Analysis ReferenceAnalyzersRCS1021On this pageRCS1021: Convert lambda expression body to expression bodyPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csvar x = items.Select(f =>{ return f.ToString();});fix.csvar x = items.Select(f => f.ToString());Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers