OSHelper Class

Provides operating system related helper properties and methods.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static class OSHelper
Inheritance
Object    OSHelper

Properties

IsFrameworkMono Gets whether the application is running on the classic Mono runtime, lately called as Framework Mono (as a distinction from Wine Mono).
IsMono Gets whether the application is running on the Mono runtime.
IsWindows Gets whether the current operating system is a Windows platform.
IsWindows10OrLater Gets whether the current operating system is Windows 10 or a later version.
IsWindows11OrLater Gets whether the current operating system is Windows 11 or a later version.
IsWindows7OrLater Gets whether the current operating system is Windows 7 or a later version.
IsWindows81OrLater Gets whether the current operating system is Windows 8.1 or a later version.
IsWindows8OrLater Gets whether the current operating system is Windows 8.0 or a later version.
IsWindowsVistaOrLater Gets whether the current operating system is Windows Vista or a later version.
IsWindowsXpOrLater Gets whether the current operating system is Windows XP or a later version.
IsWine Gets whether the application is running on Wine.
IsWineMono Gets whether the application is running on Wine's Mono runtime.

Methods

GetWindowsVersion Gets the Windows version, or if the current OS is not Windows.

See Also