Iterate over command-line arguments and print them out : Command Line : Development C# Examples


C# Examples » Development » Command Line »

 

Iterate over command-line arguments and print them out









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  args)
        {
                for  (int  arg  =  0;  arg  <  args.Length;  arg++){
                        Console.WriteLine("Arg  {0}:  {1}",  arg,  args[arg]);        
                }
                
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Command Line