Skip to content

Methods_T_CodeJam_ValueOption

andrewvk edited this page Jun 23, 2016 · 3 revisions

ValueOption Methods

[This is preliminary documentation and is subject to change.]

The ValueOption type exposes the following members.

Methods

 

Name Description
Public methodStatic member None(T) Creates instance of ValueOption without value.
Public methodStatic member Some(T) Creates instance of ValueOption with specified value.
Public methodStatic member SomeHasValue(T)(Nullable(T)) Creates instance of ValueOption with specified value, if value has value.
Public methodStatic member SomeHasValue(T)(T) Creates instance of ValueOption with specified value, if value not null.
Public methodStatic member With(T, TResult)(ValueOption(T), Func(T, TResult)) Converts option value to another option with selectFunc.
Public methodStatic member With(T, TResult)(ValueOption(T), Func(T, TResult), Func(TResult)) Converts option value to another option with selectFunc.
Public methodStatic member With(T, TResult)(ValueOption(T), Func(T, TResult), TResult) Converts option value to another option with selectFunc.
  Back to Top

See Also

Reference

ValueOption Class
CodeJam Namespace

Clone this wiki locally