Cuemon .NET Framework
FlipFlop<T1,T2>(Boolean,Act<T1,T2>,Act<T1,T2>,T1,T2) Method

The type of the first parameter of the delegates firstExpression and secondExpression.
The type of the second parameter of the delegates firstExpression and secondExpression.
When true, the firstExpression is invoked; when false, the secondExpression is invoked.
The delegate that is invoked when condition is true.
The delegate that is invoked when condition is false.
The first parameter of the delegates firstExpression and secondExpression.
The second parameter of the delegates firstExpression and secondExpression.
Invokes one of two expressions depending on the value of condition.
Syntax
'Declaration
 
Public Overloads Shared Sub FlipFlop
    (Of T1,T2)( _
   ByVal condition As Boolean, _
   ByVal firstExpression As Cuemon.Act(Of T1,T2), _
   ByVal secondExpression As Cuemon.Act(Of T1,T2), _
   ByVal arg1 As T1, _
   ByVal arg2 As T2 _
) 
public static void FlipFlop<T1,T2>( 
   bool condition,
   Cuemon.Act<T1,T2> firstExpression,
   Cuemon.Act<T1,T2> secondExpression,
   T1 arg1,
   T2 arg2
)

Parameters

condition
When true, the firstExpression is invoked; when false, the secondExpression is invoked.
firstExpression
The delegate that is invoked when condition is true.
secondExpression
The delegate that is invoked when condition is false.
arg1
The first parameter of the delegates firstExpression and secondExpression.
arg2
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.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Condition Class
Condition Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback