I am trying to use the command line arguments in a GUI (.NET + WPF) C# application. I've read that in VB.NET exists something like My.Application.CommandLineArgs but I haven´t found the C# equivalent.
I have hacked the Main function in the application class to include the string[] argv parameter and pass it to the application class constructor but i don't think that will be the correct way to access the command line parameters.
What is the correct way to access it in a C# GUI WPF application?