Code Analysis ReferenceAnalyzersRCS1097On this pageRCS1097: Remove redundant 'ToString' callPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csstring x = s.ToString();fix.csstring x = s;Example #2diagnostic.csstring x = $"{s.ToString()}";fix.csstring x = $"{s}";Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers