PresentationResult struct

Namespace Runic.Desktop · Runic.Desktop 0.7.0-preview.5

public readonly struct PresentationResult

Represents a primitive result returned to a presentation caller.

Properties

None

public static PresentationResult None { get; }

Gets a result that returns no value to the caller.

Methods

FromBoolean

public static PresentationResult FromBoolean(bool value)

Creates a Boolean result.

Parameters

value

The value returned to the caller.

Returns

The result.

FromDouble

public static PresentationResult FromDouble(double value)

Creates a double-precision floating-point result.

Parameters

value

The value returned to the caller.

Returns

The result.

FromInt64

public static PresentationResult FromInt64(long value)

Creates a signed 64-bit integer result.

Parameters

value

The value returned to the caller.

Returns

The result.

FromString

public static PresentationResult FromString(string? value)

Creates a string result; null returns an empty string.

Parameters

value

The value returned to the caller.

Returns

The result.

Operators

implicit operator PresentationResult

public static implicit operator PresentationResult(string value)

Converts a string to a result with PresentationResult.FromString.

Parameters

value

The value returned to the caller.

implicit operator PresentationResult

public static implicit operator PresentationResult(long value)

Converts a signed 64-bit integer to a result with PresentationResult.FromInt64.

Parameters

value

The value returned to the caller.

implicit operator PresentationResult

public static implicit operator PresentationResult(double value)

Converts a double-precision number to a result with PresentationResult.FromDouble.

Parameters

value

The value returned to the caller.

implicit operator PresentationResult

public static implicit operator PresentationResult(bool value)

Converts a Boolean to a result with PresentationResult.FromBoolean.

Parameters

value

The value returned to the caller.