Skip to content

T_CodeJam_ValueOption

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ValueOption Class

Methods to work with ValueOption

Inheritance Hierarchy

System.Object
  CodeJam.ValueOption
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static class ValueOption

VB

<ExtensionAttribute>
Public NotInheritable Class ValueOption

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ValueOption =  class end

The ValueOption type exposes the following members.

Methods

 

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

See Also

Reference

CodeJam Namespace

Clone this wiki locally