Class RuntimeEnvironment
Helper methods for interacting with the runtime environment.
Inheritance
System.Object
RuntimeEnvironment
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Runtime
Assembly: Kephas.Core.dll
Syntax
public static class RuntimeEnvironment
Fields
| Improve this Doc View SourceLibraryPathEnvVariable
The library path environment variable.
Declaration
public const string LibraryPathEnvVariable = "LD_LIBRARY_PATH"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourcePlatform
Gets the platform.
Declaration
public static PlatformID Platform { get; }
Property Value
Type | Description |
---|---|
System.PlatformID |
Methods
| Improve this Doc View SourceIsMonoRuntime()
Indicates wheter the application runs on the Mono runtime.
Declaration
public static bool IsMonoRuntime()
Returns
Type | Description |
---|---|
System.Boolean | True if the application runs on the Mono runtime, false if not. |
IsUnix()
Checks whether .NET is running on the Mono Platform by asking Environment.OSVersion.Platform. Can be overridden for testing purposes by setting AppEnvironment.Platform.
Declaration
public static bool IsUnix()
Returns
Type | Description |
---|---|
System.Boolean | True if the operating system is Unix like, false if not. |
IsWindows()
Checks whether .NET is running on the Mono Platform by asking Environment.OSVersion.Platform. Can be overridden for testing purposes by setting AppEnvironment.Platform.
Declaration
public static bool IsWindows()
Returns
Type | Description |
---|---|
System.Boolean | True if the operating system is Unix like, false if not. |