Skip to content

T_CodeJam_ValueOption

andrewvk edited this page Jul 1, 2016 · 5 revisions

ValueOption Class

Methods to work with ValueOption

Inheritance Hierarchy

System.Object
  CodeJam.ValueOption
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.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 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

CodeJam Namespace

Clone this wiki locally