// [EnvironmentPermissionAttribute(SecurityAction.Demand, Read = "COMMANDLINE")]\r
get\r
{\r
- return GetCommandLine ();\r
+ // FIXME: we may need to quote, but any sane person\r
+ // should use GetCommandLineArgs () instead.\r
+ return String.Join ("", GetCommandLineArgs ());\r
}\r
}\r
\r
}\r
}\r
\r
- [MonoTODO]\r
- public static void Exit(int exitCode)\r
- { \r
- }\r
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]\r
+ public extern static void Exit(int exitCode);\r
\r
/// <summary>\r
/// Substitute environment variables in the argument "name"\r
/// <summary>\r
/// Return an array of the command line arguments of the current process\r
/// </summary>\r
- public static string[] GetCommandLineArgs()\r
- {\r
- char[] delimiter = new char[1];\r
- delimiter[0] = ' ';\r
- return CommandLine.Split (delimiter);\r
- }\r
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]\r
+ public extern static string[] GetCommandLineArgs();\r
\r
/// <summary>\r
/// Return a string containing the value of the environment\r
[MethodImplAttribute (MethodImplOptions.InternalCall)]\r
private extern static string [] GetEnvironmentVariableNames ();\r
\r
- [MethodImplAttribute (MethodImplOptions.InternalCall)]\r
- private extern static string GetCommandLine ();\r
}\r
}\r