Reputation: 61616
I want to get the equivalent of string[] args in a library several layers down from the main exe. Is there anyway to do this? I don't see anything obviuos.
string[] args
Upvotes: 0
Views: 83
Reputation: 63
Environment.GetCommandLineArgs()
Upvotes: 3
Reputation: 4097
Use this:
string[] args = Environment.GetCommandLineArgs();
Upvotes: 6