C# 取得命令列參數

string[] args = Environment.GetCommandLineArgs();

foreach(string arg in args) {
    // do something
}