Table of Contents

FlipFlop Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Condition.cs

FlipFlop(bool, Action, Action)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop(bool condition, Action firstExpression, Action secondExpression)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action

The delegate that is invoked when condition is true.

secondExpression Action

The delegate that is invoked when condition is false.

FlipFlop<T>(bool, Action<T>, Action<T>, T)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop<T>(bool condition, Action<T> firstExpression, Action<T> secondExpression, T arg)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action<T>

The delegate that is invoked when condition is true.

secondExpression Action<T>

The delegate that is invoked when condition is false.

arg T

The parameter of the delegates firstExpression and secondExpression.

Type Parameters

T

The type of the parameter of the delegates firstExpression and secondExpression.

FlipFlop<T1, T2>(bool, Action<T1, T2>, Action<T1, T2>, T1, T2)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop<T1, T2>(bool condition, Action<T1, T2> firstExpression, Action<T1, T2> secondExpression, T1 arg1, T2 arg2)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action<T1, T2>

The delegate that is invoked when condition is true.

secondExpression Action<T1, T2>

The delegate that is invoked when condition is false.

arg1 T1

The first parameter of the delegates firstExpression and secondExpression.

arg2 T2

The second parameter of the delegates firstExpression and secondExpression.

Type Parameters

T1

The type of the first parameter of the delegates firstExpression and secondExpression.

T2

The type of the second parameter of the delegates firstExpression and secondExpression.

FlipFlop<T1, T2, T3>(bool, Action<T1, T2, T3>, Action<T1, T2, T3>, T1, T2, T3)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop<T1, T2, T3>(bool condition, Action<T1, T2, T3> firstExpression, Action<T1, T2, T3> secondExpression, T1 arg1, T2 arg2, T3 arg3)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action<T1, T2, T3>

The delegate that is invoked when condition is true.

secondExpression Action<T1, T2, T3>

The delegate that is invoked when condition is false.

arg1 T1

The first parameter of the delegates firstExpression and secondExpression.

arg2 T2

The second parameter of the delegates firstExpression and secondExpression.

arg3 T3

The third parameter of the delegates firstExpression and secondExpression.

Type Parameters

T1

The type of the first parameter of the delegates firstExpression and secondExpression.

T2

The type of the second parameter of the delegates firstExpression and secondExpression.

T3

The type of the third parameter of the delegates firstExpression and secondExpression.

FlipFlop<T1, T2, T3, T4>(bool, Action<T1, T2, T3, T4>, Action<T1, T2, T3, T4>, T1, T2, T3, T4)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop<T1, T2, T3, T4>(bool condition, Action<T1, T2, T3, T4> firstExpression, Action<T1, T2, T3, T4> secondExpression, T1 arg1, T2 arg2, T3 arg3, T4 arg4)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action<T1, T2, T3, T4>

The delegate that is invoked when condition is true.

secondExpression Action<T1, T2, T3, T4>

The delegate that is invoked when condition is false.

arg1 T1

The first parameter of the delegates firstExpression and secondExpression.

arg2 T2

The second parameter of the delegates firstExpression and secondExpression.

arg3 T3

The third parameter of the delegates firstExpression and secondExpression.

arg4 T4

The fourth parameter of the delegates firstExpression and secondExpression.

Type Parameters

T1

The type of the first parameter of the delegates firstExpression and secondExpression.

T2

The type of the second parameter of the delegates firstExpression and secondExpression.

T3

The type of the third parameter of the delegates firstExpression and secondExpression.

T4

The type of the fourth parameter of the delegates firstExpression and secondExpression.

FlipFlop<T1, T2, T3, T4, T5>(bool, Action<T1, T2, T3, T4, T5>, Action<T1, T2, T3, T4, T5>, T1, T2, T3, T4, T5)

Invokes one of two expressions depending on the value of condition.

public static void FlipFlop<T1, T2, T3, T4, T5>(bool condition, Action<T1, T2, T3, T4, T5> firstExpression, Action<T1, T2, T3, T4, T5> secondExpression, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)

Parameters

condition bool

When true, the firstExpression is invoked; when false, the secondExpression is invoked.

firstExpression Action<T1, T2, T3, T4, T5>

The delegate that is invoked when condition is true.

secondExpression Action<T1, T2, T3, T4, T5>

The delegate that is invoked when condition is false.

arg1 T1

The first parameter of the delegates firstExpression and secondExpression.

arg2 T2

The second parameter of the delegates firstExpression and secondExpression.

arg3 T3

The third parameter of the delegates firstExpression and secondExpression.

arg4 T4

The fourth parameter of the delegates firstExpression and secondExpression.

arg5 T5

The fifth parameter of the delegates firstExpression and secondExpression.

Type Parameters

T1

The type of the first parameter of the delegates firstExpression and secondExpression.

T2

The type of the second parameter of the delegates firstExpression and secondExpression.

T3

The type of the third parameter of the delegates firstExpression and secondExpression.

T4

The type of the fourth parameter of the delegates firstExpression and secondExpression.

T5

The type of the fifth parameter of the delegates firstExpression and secondExpression.