Sunday, 13 June 2010

Access each character of a string

foreach (char ch in stringVar)
{
  Console.WriteLine(ch.ToString());
}




OR


String.ToCharArray()

1 comment:

cna training said...

Great information! I’ve been looking for something like this for a while now. Thanks!