OSPlatform Struct

Definition

Represents an operating system platform.

public readonly struct OSPlatform : IEquatable<System.Runtime.InteropServices.OSPlatform>
public struct OSPlatform : IEquatable<System.Runtime.InteropServices.OSPlatform>
Inheritance
OSPlatform
Implements

Properties

FreeBSD

Gets an object that represents the FreeBSD operating system.

Linux

Gets an object that represents the Linux operating system.

OSX

Gets an object that represents the OSX operating system.

Windows

Gets an object that represents the Windows operating system.

Methods

Create(String)

Creates a new OSPlatform instance.

Equals(Object)

Determines whether the current OSPlatform instance is equal to the specified object.

Equals(OSPlatform)

Determines whether the current instance and the specified OSPlatform instance are equal.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the string representation of this OSPlatform instance.

Operators

Equality(OSPlatform, OSPlatform)

Determines whether two OSPlatform objects are equal.

Inequality(OSPlatform, OSPlatform)

Determines whether two OSPlatform instances are unequal.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1