Access the command-line arguments directly through Environment.CommandLine
using System;
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine(Environment.CommandLine);
foreach (string s in Environment.GetCommandLineArgs())
{
Console.WriteLine(s);
}
}
}