I'm trying to read user arguments in a C# application. I know how to read them based on position with
string[] args = Environment.GetCommandLineArgs();
but I'd like to read them from switches such as
app.exe /f /d:foo
I'm really struggling to find any information on doing this...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…