Click here to Skip to main content
15,893,487 members
Articles / Programming Languages / C# 4.0

Reverse of a string without using the Reverse function in C# and VB

23 Jul 2011CPOL 26.6K   1  
Yet some another way to reverse strings is given below. Take a look:private static string Reverse(string str){ if (str.Length == 1) return str; else return str[str.Length - 1] + Reverse(str.Substring(0, str.Length - 1));}and:public static string Reverse(string...
We're sorry, but the article you are trying to view was deleted at 10 Apr 2017.

Please go to the C# 4.0 Table of Contents to view the list of available articles in this section.