File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -182,19 +182,19 @@ private static string OptimizationToString(int opt)
182182 string s = Enum . GetName ( typeof ( XmlILOptimization ) , opt ) ! ;
183183 if ( s . StartsWith ( "Introduce" , StringComparison . Ordinal ) )
184184 {
185- return s . Substring ( 9 ) + " introduction" ;
185+ return string . Concat ( s . AsSpan ( 9 ) , " introduction" ) ;
186186 }
187187 else if ( s . StartsWith ( "Eliminate" , StringComparison . Ordinal ) )
188188 {
189- return s . Substring ( 9 ) + " elimination" ;
189+ return string . Concat ( s . AsSpan ( 9 ) , " elimination" ) ;
190190 }
191191 else if ( s . StartsWith ( "Commute" , StringComparison . Ordinal ) )
192192 {
193- return s . Substring ( 7 ) + " commutation" ;
193+ return string . Concat ( s . AsSpan ( 7 ) , " commutation" ) ;
194194 }
195195 else if ( s . StartsWith ( "Fold" , StringComparison . Ordinal ) )
196196 {
197- return s . Substring ( 4 ) + " folding" ;
197+ return string . Concat ( s . AsSpan ( 4 ) , " folding" ) ;
198198 }
199199 else if ( s . StartsWith ( "Misc" , StringComparison . Ordinal ) )
200200 {
You can’t perform that action at this time.
0 commit comments