Display all command-line information : Command Line : Development C# Examples


C# Examples » Development » Command Line »

 

Display all command-line information









    
using  System;  
  
class  MainClass  {    
    public  static  void  Main(string[]  args)  {  
        Console.WriteLine("There  are  "  +  args.Length  +  
                                              "  command-line  arguments.");  
  
        Console.WriteLine("They  are:  ");  
        for(int  i=0;  i  <  args.Length;  i++)    
            Console.WriteLine(args[i]);    
    }    
}
    
   
  
   



Output

There are 0 command-line arguments.
They are:


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Command Line