Skip to content

Overload_CodeJam_Option_GetValueOrDefault

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

Option.GetValueOrDefault Method

Overload List

 

Name Description
Public methodStatic member GetValueOrDefault(T)(IOption(T), T) Returns value of option, or defaultValue if option hasn't it.
Public methodStatic member GetValueOrDefault(T, TResult)(IOption(T), Func(IOption(T), TResult), Func(TResult)) Calls someSelector if option has value, and noneSelector otherwise.
  Back to Top

See Also

Reference

Option Class
CodeJam Namespace

Clone this wiki locally