Demonstrate Command Line Arguments Processing Using C#

This program is useful to understand how can you give command line arguments in C#. 
  1. using System;  
  2. class Program {  
  3.     static void Main(string[] args) {  
  4.         Console.WriteLine("\nNumber of CommadLine Arguments :" + args.Length);  
  5.         Console.Write("\nCommandline Arguments Are :\t");  
  6.         for (int i = 0; i < args.Length; i++) {  
  7.             Console.Write(args[i] + "\t");  
  8.         }  
  9.         Console.ReadLine();  
  10.     }  
  11. }  
Note

You have to run this program using  csc command.
usage: csc program <your command line argument value> 
 
csc - csharp compiler available in Developer Command Prompt for Visual studio