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
TThe type of value the option encapsulates.
Exceptions
- ArgumentNullException
When
valueis null. Use From<T>(T?) ifvaluemay be null.