Skip to content

Methods_T_CodeJam_ValueOption

Andrew Koryavchenko edited this page Jul 4, 2017 · 3 revisions

ValueOption Methods

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