Skip to content

M_CodeJam_ValueOneOf_2_Do

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

ValueOneOf(T1, T2).Do Method

Calls action for actual type argument.

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

Syntax

C#

public void Do(
	Action<T1> case1Action,
	Action<T2> case2Action
)

VB

Public Sub Do ( 
	case1Action As Action(Of T1),
	case2Action As Action(Of T2)
)

F#

abstract Do : 
        case1Action : Action<'T1> * 
        case2Action : Action<'T2> -> unit 
override Do : 
        case1Action : Action<'T1> * 
        case2Action : Action<'T2> -> unit 

Parameters

 

case1Action
Type: System.Action(T1)
Action for T1
case2Action
Type: System.Action(T2)
Action for T2

Implements

IOneOf(T1, T2).Do(Action(T1), Action(T2))

See Also

Reference

ValueOneOf(T1, T2) Structure
CodeJam Namespace

Clone this wiki locally