Dynamic Operations
5 nodes
On this page 5
Get Properties
FunctionGet names of public properties.
Signature
GetProperties(obj: Any) -> Text Array
string[] GetProperties(object obj)
Parameters
| name | type | default | description |
|---|---|---|---|
| obj | Any | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Dynamic Operations
- Package
- Standard Library
Get Property Value
FunctionThis node carries no documentation.
Signature
GetPropertyValue(obj: Any, property: Text) -> Any
object GetPropertyValue(object obj, string property)
Parameters
| name | type | default | description |
|---|---|---|---|
| obj | Any | — | |
| property | Text | — |
Returns
| result | Any |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Dynamic Operations
- Package
- Standard Library
Make Expando
FunctionThis node carries no documentation.
Signature
MakeExpando(names: Text Array, values: Any Array) -> Any
object MakeExpando(string[] names, object[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| names | Text Array | — | |
| values | Any Array | — |
Returns
| result | Any |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Dynamic Operations
- Package
- Standard Library
Make Object
FunctionThis node carries no documentation.
Overload 1 of 2
Signature
MakeObject -> Any
properties: Type Array
propertyNames: Text Array
initialValues: Any Arrayobject MakeObject(
Type[] properties,
string[] propertyNames,
object[] initialValues)Parameters
| name | type | default | description |
|---|---|---|---|
| properties | Type Array | — | |
| propertyNames | Text Array | — | |
| initialValues | Any Array | — |
Returns
| result | Any |
Overload 2 of 2
Signature
MakeObject -> Any
properties: Type Array
initialValues: Any Arrayobject MakeObject(Type[] properties, object[] initialValues)
Parameters
| name | type | default | description |
|---|---|---|---|
| properties | Type Array | — | |
| initialValues | Any Array | — |
Returns
| result | Any |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Dynamic Operations
- Package
- Standard Library
Make Object Type
FunctionThis node carries no documentation.
Overload 1 of 2
Signature
MakeObjectType -> Type
properties: Type Array
propertyNames: Text Array
typeName: Text
initialValues: Any Array
useCache: TruthType MakeObjectType(
Type[] properties,
string[] propertyNames,
string typeName,
object[] initialValues,
bool useCache = true)Parameters
| name | type | default | description |
|---|---|---|---|
| properties | Type Array | — | |
| propertyNames | Text Array | — | |
| typeName | Text | — | |
| initialValues | Any Array | — | |
| useCache | Truth | True |
Returns
| result | Type |
Remarks
This generates a runtime assembly, and for Divooka purpose one should NOT directly save information on that type for it will not be available during (graph) loading type.
Instead, we should devise dedicated reflection helpers to deal with such generated types, e.g. devise an automatic dataflow node equivalent ReflectionPropertyAccessorNode or something like that which saves only the intended property to be accessed and thus do not require strongly typed Type or Assembly information
Overload 2 of 2
Signature
MakeObjectType -> Type
properties: Type Array
initialValues: Any Array
useCache: TruthType MakeObjectType(
Type[] properties,
object[] initialValues,
bool useCache = true)Parameters
| name | type | default | description |
|---|---|---|---|
| properties | Type Array | — | |
| initialValues | Any Array | — | |
| useCache | Truth | True |
Returns
| result | Type |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Dynamic Operations
- Package
- Standard Library