string[] args = Environment.GetCommandLineArgs();

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