C# Class System.Runtime.OSPlatformHelper

Operation system platform helper
操作系统平台信息帮助者程序
显示文件 Open project: cosmos-loops/cosmos-standard Class Usage Examples

Public Methods

Method Description
IsLinux ( ) : bool

Is current operation system Linux system
当前操作系统是否为 Linux 系统

IsMacOS ( ) : bool

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统

IsOSX ( ) : bool

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统

IsWindows ( ) : bool

Is current operation system Microsoft Windows
当前操作系统是否为微软视窗(Windows)操作系统

Method Details

IsLinux() public static method

Is current operation system Linux system
当前操作系统是否为 Linux 系统
public static IsLinux ( ) : bool
return bool

IsMacOS() public static method

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统
public static IsMacOS ( ) : bool
return bool

IsOSX() public static method

Is current operation system Apple MacOS (OSX)
当前操作系统是否是苹果 MacOS(OSX) 操作系统
public static IsOSX ( ) : bool
return bool

IsWindows() public static method

Is current operation system Microsoft Windows
当前操作系统是否为微软视窗(Windows)操作系统
public static IsWindows ( ) : bool
return bool