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