LaunchBoxContributors
On this page

EmulatorInstalledVersion14.1

Class in Unbroken.LaunchBox.Plugins.Components.Emulators

C#
public sealed class EmulatorInstalledVersion
Represents a known installed emulator version or an explicit unknown result.

Properties

  • IsKnownGets whether EmulatorInstalledVersion.Value contains a known version.
  • UnknownGets the shared unknown-version result.
  • ValueGets the installed version, or null when it is unknown.

IsKnown

C#
public bool IsKnown { get; }
Gets whether EmulatorInstalledVersion.Value contains a known version.

Unknown

C#
public static EmulatorInstalledVersion Unknown { get; }
Gets the shared unknown-version result.

Value

C#
public string? Value { get; }
Gets the installed version, or null when it is unknown.

Methods

  • FromValueCreates a known or unknown result from a nullable version value.
  • KnownCreates a known installed-version result.

FromValue

C#
public static EmulatorInstalledVersion FromValue(string? value)
Creates a known or unknown result from a nullable version value.
value
The installed version, or null when it is unknown.

Returns

A known result for a non-empty value; otherwise, EmulatorInstalledVersion.Unknown.

Known

C#
public static EmulatorInstalledVersion Known(string value)
Creates a known installed-version result.
value
The non-empty installed version.

Returns

A known installed-version result.