Search Results for

    Show / Hide Table of Contents

    Class OperatingSystemHelper

    Helper class to determine executing OS platform.

    Inheritance
    object
    OperatingSystemHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Generated by DocFX