Class SwitchOnEnum
Branches flow by switching over an enum.
Inheritance
object
SwitchOnEnum
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitTitleAttribute]
[UnitShortTitleAttribute]
[UnitSubtitleAttribute]
[UnitOrderAttribute]
public sealed class SwitchOnEnum : Unit, IBranchUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
branches
Declaration
[DoNotSerializeAttribute]
public Dictionary<Enum, ControlOutput> branches { get; }
Property Value
canDefine
Gets a value indicating whether this unit can be defined.
Declaration
public override bool canDefine { get; }
Property Value
Overrides
enter
The entry point for the switch.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
enum
The enum value on which to switch.
Declaration
[DoNotSerializeAttribute]
public ValueInput @enum { get; }
Property Value
enumType
Declaration
[SerializeAttribute]
[InspectableAttribute]
[UnitHeaderInspectableAttribute]
[TypeFilter]
public Type enumType { get; set; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
| Type |
Name |
Description |
| Flow |
flow |
|
Returns
Implements
IDisposable
Extension Methods