Class DelegateUnit
Creates a handler for a delegate.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitDisplay("Delegate")]
[UnitCategory("Flow", 31)]
[TypeIcon(typeof(Delegate))]
public sealed class DelegateUnit : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Constructors
DelegateUnit()
Declaration
public DelegateUnit()
DelegateUnit(Type)
Declaration
public DelegateUnit(Type delegateType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | delegateType |
Properties
body
The entry point of the delegate.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false, showDocumentation = false)]
public ControlOutput body { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
canDefine
Declaration
public override bool canDefine { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.canDefine
delegate
The delegate object.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueOutput delegate { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
hasResult
Declaration
[DoNotSerialize]
public bool hasResult { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
parameters
Declaration
[DoNotSerialize]
public List<ValueOutput> parameters { get; }
Property Value
| Type | Description |
|---|---|
| List<ValueOutput> |
result
The result of the delegate, if any.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueInput result { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
returnType
Declaration
[DoNotSerialize]
public Type returnType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
type
The type of delegate.
Declaration
[DoNotSerialize]
[Inspectable]
[TypeFilter(TypesMatching.AssignableToAll, new Type[]{typeof(Delegate)})]
public Type type { get; set; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()