Table of Contents

Method MatchVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchVoid(Action<T1>, Action<T2>, Action<T3>, Action<T4>, Action<T5>)

Runs one of the five actions depending on which case is held.

public void MatchVoid(Action<T1> onFirst, Action<T2> onSecond, Action<T3> onThird, Action<T4> onFourth, Action<T5> onFifth)

Parameters

onFirst Action<T1>

Run with the value when the first case is held.

onSecond Action<T2>

Run with the value when the second case is held.

onThird Action<T3>

Run with the value when the third case is held.

onFourth Action<T4>

Run with the value when the fourth case is held.

onFifth Action<T5>

Run with the value when the fifth case is held.