Gautam Buddha Temple Varanasi,Varanasi - Buddhist Pilgrimage

Tuesday, August 24, 2010

How to reverse a string

 char [] myArray = txtName.Text.ToCharArray();  
Array.Reverse( myArray );
string strReversed = new string( myArray );
lblName.Text = strReversed;

No comments:

Post a Comment