Edit

Share via


FlowSwitch<T> Constructor

Definition

Creates a new instance of the FlowSwitch<T> class.

public:
 FlowSwitch();
public FlowSwitch ();
Public Sub New ()

Examples

The following code sample demonstrates creating a FlowSwitch<T> node. This example is from the Fault Handling in a Flowchart Activity Using TryCatch sample.

FlowSwitch<string> promoCodeSwitch = new FlowSwitch<string>
{
    Expression = promo,
    Cases =
    {
       { "Single", singleStep },
       { "MNK", mnkStep },
       { "MWK", mwkStep }
    },
    Default = discountDefault
};

Applies to