Class OperatingSystemHelper
Helper class for determining the executing OS platform.
Namespace: Evergine.Common
Assembly: Evergine.Common.dll
Syntax
public static class OperatingSystemHelper
Methods
GetCurrentPlatfom()
Gets the current executing platform.
Declaration
public static PlatformType GetCurrentPlatfom()
Returns
Type | Description |
---|---|
Platform |
Executing platform if found. Returns Undefined if the platform could not be determined. |
IsAnyOfOSPlatforms(IEnumerable<PlatformType>)
Checks if the current executing platform is one of the specified platforms.
Declaration
public static bool IsAnyOfOSPlatforms(IEnumerable<PlatformType> platforms)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Platform |
platforms | Lookup platforms. |
Returns
Type | Description |
---|---|
bool | True if any of the provided platforms match; false otherwise. |
IsOSPlatform(PlatformType)
Checks the currently executing platform.
Declaration
public static bool IsOSPlatform(PlatformType platform)
Parameters
Type | Name | Description |
---|---|---|
Platform |
platform | Platform to check. |
Returns
Type | Description |
---|---|
bool | True if the platform check succeeds; false otherwise. |