27 02 2013
Implementation of a string reverse Extension Method
This is a follow-up of Introducing Extension Methods
This method is an extension of the string-class. It reverts a string in a very efficient way and it is widely used around the world.
Faster methodes use either unsafe code or only work fast on very short strings.
public static class StringExtension
public static string Revert(this string str)
char c = str.ToCharArray();
return new string(c);