string[] abc = new string[] { "3", "2", "1" }; foreach (string s in abc) { //Your code here }
int
string
string[] abc= new string[] { "3", "2", "1" }; foreach(string x in abc ) { Console.WriteLins(x); }
string[] abc = new string[] { "3", "2", "1" }; foreach (string x in abc) { Console.Write(Convert.ToInt32(x)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)