Table of Contents

Method MatchVoid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MatchVoid(Action<object?>, Action<object?>, Action<object?>, Action<object?>, Action<object?>, Action<object?>, Action<object?>, Action<object?>)

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

void MatchVoid(Action<object?> onFirst, Action<object?> onSecond, Action<object?> onThird, Action<object?> onFourth, Action<object?> onFifth, Action<object?> onSixth, Action<object?> onSeventh, Action<object?> onEighth)

Parameters

onFirst Action<object>

Run with the value when the first case is held.

onSecond Action<object>

Run with the value when the second case is held.

onThird Action<object>

Run with the value when the third case is held.

onFourth Action<object>

Run with the value when the fourth case is held.

onFifth Action<object>

Run with the value when the fifth case is held.

onSixth Action<object>

Run with the value when the sixth case is held.

onSeventh Action<object>

Run with the value when the seventh case is held.

onEighth Action<object>

Run with the value when the eighth case is held.