Table of Contents

Struct KnownSymbols.Option<T>

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

Defines a true optional type that supports Some(null) representations.

protected readonly struct KnownSymbols.Option<T>

Type Parameters

T

The optional value contained.

Inherited Members

Constructors

Option(T)

Defines a true optional type that supports Some(null) representations.

public Option(T value)

Parameters

value T

Properties

HasValue

Indicates whether the option has a value, or default otherwise.

public bool HasValue { get; }

Property Value

bool

Value

The value of the option.

public T Value { get; }

Property Value

T