Aray String
How to compare the strings by charrecter by charrecter??? in VS 2003 using C#
I diclared the string as array type.I need to compare each letters of the Textbox string.
can anybody help me with the coding????
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Aug 29, 2009, 3:02 AM EDT
protected void Button1_Click(object sender, EventArgs e)
{
//Convert TextBox Text To Character Array
char[] chararray = TextBox1.Text.ToCharArray();
foreach (char c in chararray)
{
//Do What ever you want to do with character
}
}