Table of Contents

TryUnwrap Method

Definition

Namespace
Tyne
Assembly
Tyne.Core.dll

Methods

| Edit this page View Source

TryUnwrap(out T?)

Tries to unwrap this option.

Declaration
[Pure]
public bool TryUnwrap(out T? value)
Parameters
value
T

This option's value if it is Some(T); otherwise, default when it is None.

Returns
bool

true if this is Some(T); otherwise, false when it is None.

Remarks

If this is Some(T), then value is set and this returns true. Otherwise, when this is None, then value will be default and this returns false.