Exemple #1
0
        private static string[] GetMainMethodArguments()
        {
            // GetCommandLineArgs includes the executable name, Main() arguments do not.
            string[] args = EnvironmentAugments.GetCommandLineArgs();

            Debug.Assert(args.Length > 0);

            string[] mainArgs = new string[args.Length - 1];
            Array.Copy(args, 1, mainArgs, 0, mainArgs.Length);

            return(mainArgs);
        }
 public static string[] GetCommandLineArgs() => EnvironmentAugments.GetCommandLineArgs();
Exemple #3
0
 public static string[] GetCommandLineArgs()
 {
     return(EnvironmentAugments.GetCommandLineArgs());
 }