In a C# Windows Application or Console Application, you may want to access arguments passed to your application via the Command Line.
This is actually very easy to do. All you have to do is modify your Main() method to take in an array of strings:
static void Main(string[] args) {
foreach(string arg in args)
{
Console.WriteLine(String.Format("Arg: {0}", arg);
}
}