Skip to content

M_CodeJam_ValueOneOf_2_GetValue__1

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

ValueOneOf(T1, T2).GetValue(TResult) Method

Calls func for actual type argument and returns calculated value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public TResult GetValue<TResult>(
	Func<T1, TResult> case1Selector,
	Func<T2, TResult> case2Selector
)

VB

Public Function GetValue(Of TResult) ( 
	case1Selector As Func(Of T1, TResult),
	case2Selector As Func(Of T2, TResult)
) As TResult

F#

abstract GetValue : 
        case1Selector : Func<'T1, 'TResult> * 
        case2Selector : Func<'T2, 'TResult> -> 'TResult 
override GetValue : 
        case1Selector : Func<'T1, 'TResult> * 
        case2Selector : Func<'T2, 'TResult> -> 'TResult 

Parameters

 

case1Selector
Type: System.Func(T1, TResult)
Calculation function for T1
case2Selector
Type: System.Func(T2, TResult)
Calculation function for T2

Type Parameters

 

TResult
[Missing documentation for "M:CodeJam.ValueOneOf2.GetValue``1(System.Func{0,0},System.Func{`1,0})"]

Return Value

Type: TResult
Calculated value.

Implements

IOneOf(T1, T2).GetValue(TResult)(Func(T1, TResult), Func(T2, TResult))

See Also

Reference

ValueOneOf(T1, T2) Structure
CodeJam Namespace

Clone this wiki locally