{\r
public sealed class Environment\r
{\r
- private Environment () {}
-
+ private Environment () {}\r
+\r
[MonoTODO]\r
public enum SpecialFolder\r
{ // TODO: Determine if these windoze style folder identifiers \r
{\r
// FIXME: we may need to quote, but any sane person\r
// should use GetCommandLineArgs () instead.\r
- return String.Join ("", GetCommandLineArgs ());\r
+ return String.Join (" ", GetCommandLineArgs ());\r
}\r
}\r
\r
/// <summary>\r
/// Get StackTrace\r
/// </summary>\r
- [MonoTODO]\r
- public static string StackTrace\r
- {\r
- get\r
- {\r
- return null;\r
+ public static string StackTrace {\r
+ get {\r
+ try {\r
+ throw new Exception ();\r
+ } catch (Exception e) {\r
+ return e.StackTrace;\r
+ }\r
}\r
}\r
\r
/// Get UserDomainName\r
/// </summary>\r
[MonoTODO]\r
- public static string UserDomainName\r
- {\r
- get\r
- {\r
- return null;\r
+ public static string UserDomainName {\r
+ get {\r
+ return MachineName;\r
}\r
}\r
\r
}\r
\r
/// <summary>\r
- /// Get the version of an assembly\r
+ /// Get the version of the common language runtime \r
/// </summary>\r
[MonoTODO]\r
- public static Version Version\r
- {\r
- get\r
- {\r
- return null;\r
+ public static Version Version {\r
+ get {\r
+ return new Version();\r
}\r
}\r
\r