1.4.7.Using foreach to loop through the parameter from Main function
using System; using System.Collections.Generic; using System.Linq; using System.Text;
class Program
{ static void Main(string[] args)
{
Console.WriteLine("{0} command line arguments were specified:",args.Length);
foreach (string arg in args)
Console.WriteLine(arg);
}
}