Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想string[] args在一个库中从主 exe 向下几层获得等价物。有没有办法做到这一点?我没有看到任何明显的东西。
string[] args
用这个:
string[] args = Environment.GetCommandLineArgs();
Environment.GetCommandLineArgs()