You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
86
mcs/class/System.Private.CoreLib/System/Environment.cs
Normal file
86
mcs/class/System.Private.CoreLib/System/Environment.cs
Normal file
@ -0,0 +1,86 @@
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using Mono;
|
||||
|
||||
namespace System
|
||||
{
|
||||
partial class Environment
|
||||
{
|
||||
// This is the version of the corlib-runtime interface (defined in configure.ac)
|
||||
private const string mono_corlib_version = Consts.MonoCorlibVersion;
|
||||
|
||||
public static int CurrentManagedThreadId => Thread.CurrentThread.ManagedThreadId;
|
||||
|
||||
public extern static int ExitCode {
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
public static extern bool HasShutdownStarted {
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
public static extern int ProcessorCount {
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
public static string StackTrace {
|
||||
[MethodImpl (MethodImplOptions.NoInlining)] // Prevent inlining from affecting where the stacktrace starts
|
||||
get => new StackTrace (true).ToString (System.Diagnostics.StackTrace.TraceFormat.Normal);
|
||||
}
|
||||
|
||||
public extern static int TickCount {
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
public extern static void Exit (int exitCode);
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
public extern static string[] GetCommandLineArgs ();
|
||||
|
||||
public static void FailFast (string message)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static void FailFast(string message, Exception exception)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public static void FailFast (string message, Exception exception, string errorMessage)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
}
|
||||
|
||||
#region referencesource dependencies - to be removed
|
||||
|
||||
partial class Environment
|
||||
{
|
||||
internal static string GetResourceString (string key)
|
||||
{
|
||||
return key;
|
||||
}
|
||||
|
||||
internal static string GetResourceString (string key, CultureInfo culture)
|
||||
{
|
||||
return key;
|
||||
}
|
||||
|
||||
internal static string GetResourceString (string key, params object[] values)
|
||||
{
|
||||
return string.Format (CultureInfo.InvariantCulture, key, values);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
Reference in New Issue
Block a user