Class SelectFromListEffector
Effector to select an element in a list of objects by its index
Inherited Members
Namespace: Xareus.Scenarios.Extra
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("SEVEN.Extra.SelectFromListEffector", "SEVEN.Extra")]
[FunctionDescription("Selects an element from a list. Note that if any other type of collection is supplied, it will be converted to a list first")]
public class SelectFromListEffector : AEffector
Constructors
SelectFromListEffector(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
protected SelectFromListEffector(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | event | |
| Dictionary<string, Parameter> | parameters | |
| ContextHolder | contexts |
Fields
index
The index of the element to recover
Declaration
[ConfigurationParameter("Index", "The index to select in the list", Necessity.Required)]
protected int index
Field Value
| Type | Description |
|---|---|
| int |
list
The list of objects
Declaration
[ConfigurationParameter("List", "The list to select from", Necessity.Required)]
protected List<object> list
Field Value
| Type | Description |
|---|---|
| List<object> |
output
The result
Declaration
[ContextVariable("Output")]
protected ContextVariable<object> output
Field Value
| Type | Description |
|---|---|
| ContextVariable<object> |
Methods
EffectorUpdate()
Applies a processing as soon as the event occurs.
Declaration
public override void EffectorUpdate()