Comments on: How to Reverse a String in C# https://code-maze.com/csharp-reverse-string/ Learn. Code. Succeed. Thu, 18 May 2023 12:20:03 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Marinko Spasojević https://code-maze.com/csharp-reverse-string/#comment-8178 Thu, 18 May 2023 12:20:03 +0000 https://code-maze.com/?p=89415#comment-8178 In reply to Jeff S..

Thanks Jeff. We’ve addressed this with our new update.

]]>
By: Jeff S. https://code-maze.com/csharp-reverse-string/#comment-8177 Thu, 18 May 2023 10:10:56 +0000 https://code-maze.com/?p=89415#comment-8177 The TextElementEnumeratorMethod can be improved by taking a span over val. It should improve the performance over the recursive method at least. The way the code is currently, it is creating substrings. If that was a span it would just create a slice so there would be no new string allocation.

]]>