Friday, August 19, 2011

C# - Reverse string without using loop and split method



protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        { Response.Write(Reverse("Beyondrelational"));}
    }

private string Reverse(string strValue)
    {
        char[] chArray = strValue.ToCharArray();
        Array.Reverse(chArray);
        return new string(chArray);
    }


Thank You
Post a Comment

Find a cool free stuff everyday

Giveaway of the Day

Hiren Bharadwa's Posts

DotNetJalps