System.Runtime.OSPlatformHelper.IsLinux C# (CSharp) Method

IsLinux() public static method

Is current operation system Linux system
当前操作系统是否为 Linux 系统
public static IsLinux ( ) : bool
return bool
        public static bool IsLinux() => RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
    }