Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created February 27, 2010 06:49
Show Gist options
  • Save TonnyXu/316525 to your computer and use it in GitHub Desktop.
Save TonnyXu/316525 to your computer and use it in GitHub Desktop.
public static string reverseByAPI(string input){
if (string.IsNullOrEmpty(input)) return input;
char[] inputArrary = input.ToCharArray();
Array.Reverse(inputArrary);
return new string(inputArrary);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment