Skip to content

M_CodeJam_OneOf_7_Do

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

OneOf(T1, T2, T3, T4, T5, T6, T7).Do Method

Calls action for actual type argument.

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

Syntax

C#

public abstract void Do(
	Action<T1> case1Action,
	Action<T2> case2Action,
	Action<T3> case3Action,
	Action<T4> case4Action,
	Action<T5> case5Action,
	Action<T6> case6Action,
	Action<T7> case7Action
)

VB

Public MustOverride Sub Do ( 
	case1Action As Action(Of T1),
	case2Action As Action(Of T2),
	case3Action As Action(Of T3),
	case4Action As Action(Of T4),
	case5Action As Action(Of T5),
	case6Action As Action(Of T6),
	case7Action As Action(Of T7)
)

F#

abstract Do : 
        case1Action : Action<'T1> * 
        case2Action : Action<'T2> * 
        case3Action : Action<'T3> * 
        case4Action : Action<'T4> * 
        case5Action : Action<'T5> * 
        case6Action : Action<'T6> * 
        case7Action : Action<'T7> -> unit 

Parameters

 

case1Action
Type: System.Action(T1)
Action for T1
case2Action
Type: System.Action(T2)
Action for T2
case3Action
Type: System.Action(T3)
Action for T3
case4Action
Type: System.Action(T4)
Action for T4
case5Action
Type: System.Action(T5)
Action for T5
case6Action
Type: System.Action(T6)
Action for T6
case7Action
Type: System.Action(T7)
Action for T7

Implements

IOneOf(T1, T2, T3, T4, T5, T6, T7).Do(Action(T1), Action(T2), Action(T3), Action(T4), Action(T5), Action(T6), Action(T7))

See Also

Reference

OneOf(T1, T2, T3, T4, T5, T6, T7) Class
CodeJam Namespace

Clone this wiki locally