Table of Contents

Struct Optional<T>

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Represents an optional value.

public struct Optional<T>

Type Parameters

T
Inherited Members

Properties

HasValue

Checks if a value is present.

public bool HasValue { get; }

Property Value

bool

Value

public T Value { get; }

Property Value

T

Methods

ValueOr(T)

Returns the existing value if present, and otherwise an alternative value.

public T ValueOr(T alternative)

Parameters

alternative T

The alternative value.

Returns

T

The existing or alternative value.