Some Method
Definition
- Namespace
- Tyne
- Assembly
- Tyne.Core.dll
Methods
| Edit this page View SourceSome<T>(T)
Creates a Some(
Option<T> using T
)value
.
Declaration
[Pure]
public static Option<T> Some<T>(T value)
Parameters
value
- T
The T
to wrap.
Returns
Option<T>A Some(
Option<T> which wraps T
)value
.
Type Parameters
T
The type of value the option encapsulates.
Exceptions
- ArgumentNullException
When
value
is null. Use From<T>(T?) ifvalue
may be null.