動態操作
5 個節點
本頁內容 5
取得所有屬性
函數Get names of public properties.
簽名
取得所有屬性(物件: 任意) -> 文字陣列
string[] GetProperties(object obj)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 物件 | 任意 | — |
返回
| 結果 | 文字陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 動態操作
- 所屬包
- 標準庫
取得屬性值
函數此節點沒有文件說明。
簽名
取得屬性值(物件: 任意, 屬性: 文字) -> 任意
object GetPropertyValue(object obj, string property)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 物件 | 任意 | — | |
| 屬性 | 文字 | — |
返回
| 結果 | 任意 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 動態操作
- 所屬包
- 標準庫
建立動態物件
函數此節點沒有文件說明。
簽名
建立動態物件(名稱: 文字陣列, 值: 任意陣列) -> 任意
object MakeExpando(string[] names, object[] values)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 名稱 | 文字陣列 | — | |
| 值 | 任意陣列 | — |
返回
| 結果 | 任意 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 動態操作
- 所屬包
- 標準庫
建立物件
函數此節點沒有文件說明。
過載 1/2
簽名
建立物件 -> 任意
屬性: Type 陣列
屬性名稱: 文字陣列
初始值: 任意陣列object MakeObject(
Type[] properties,
string[] propertyNames,
object[] initialValues)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 屬性 | Type 陣列 | — | |
| 屬性名稱 | 文字陣列 | — | |
| 初始值 | 任意陣列 | — |
返回
| 結果 | 任意 |
過載 2/2
簽名
建立物件(屬性: Type 陣列, 初始值: 任意陣列) -> 任意
object MakeObject(Type[] properties, object[] initialValues)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 屬性 | Type 陣列 | — | |
| 初始值 | 任意陣列 | — |
返回
| 結果 | 任意 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 動態操作
- 所屬包
- 標準庫
建立物件型別
函數此節點沒有文件說明。
過載 1/2
簽名
建立物件型別 -> Type
屬性: Type 陣列
屬性名稱: 文字陣列
型別名稱: 文字
初始值: 任意陣列
使用快取: 真否Type MakeObjectType(
Type[] properties,
string[] propertyNames,
string typeName,
object[] initialValues,
bool useCache = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 屬性 | Type 陣列 | — | |
| 屬性名稱 | 文字陣列 | — | |
| 型別名稱 | 文字 | — | |
| 初始值 | 任意陣列 | — | |
| 使用快取 | 真否 | True |
返回
| 結果 | Type |
備註
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
過載 2/2
簽名
建立物件型別 -> Type
屬性: Type 陣列
初始值: 任意陣列
使用快取: 真否Type MakeObjectType(
Type[] properties,
object[] initialValues,
bool useCache = true)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 屬性 | Type 陣列 | — | |
| 初始值 | 任意陣列 | — | |
| 使用快取 | 真否 | True |
返回
| 結果 | Type |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 動態操作
- 所屬包
- 標準庫