Skip to content

Methods_T_CodeJam_IOption_1

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

IOption(T) Methods

The IOption(T) generic type exposes the following members.

Extension Methods

 

Name Description
Public Extension Method Do(T) Calls someAction if option has value, and noneAction otherwise. (Defined by Option.)
Public Extension Method GetValueOrDefault(T)(T) Overloaded.
Returns value of option, or defaultValue if option hasn't it. (Defined by Option.)
Public Extension Method GetValueOrDefault(T, TResult)(Func(IOption(T), TResult), Func(TResult)) Overloaded.
Calls someSelector if option has value, and noneSelector otherwise. (Defined by Option.)
  Back to Top

See Also

Reference

IOption(T) Interface
CodeJam Namespace

Clone this wiki locally