Code Analysis ReferenceAnalyzersRCS1107On this pageRCS1107: Remove redundant 'ToCharArray' callPropertiesPropertyValueDefault SeverityInfoMinimum language version-ExamplesExample #1diagnostic.csforeach (char ch in s.ToCharArray()){}fix.csforeach (char ch in s){}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers