string str = "Hello"; string nStr = string.Empty; foreach (char c in str) { nStr += c.ToString();//Code Here } MessageBox.Show(nStr);
string str = "example" for (int i = 0; i < str.Length; i++) { MessageBox.Show(str[i].ToString()); }
Console.ReadLine();
string
string str = "Welcome"; char i = str[3];
i
'c'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)