Skip to content

M_Cyjb_Collections_TripleArrayCompress_2_AddNode

CYJB edited this page Mar 20, 2024 · 2 revisions

TripleArrayCompress(TCur, TNext).AddNode 方法

添加指定的节点。

Namespace: Cyjb.Collections
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public int AddNode(
	TCur currentNode,
	IEnumerable<KeyValuePair<int, TNext>> children
)

参数

 

currentNode
Type: TCur
当前节点。
children
Type: System.Collections.Generic.IEnumerable(KeyValuePair(Int32, TNext))
子节点列表,会被多次遍历因此请视情况使用缓存。

返回值

Type: Int32
指定节点的基线索引。

参见

Reference

TripleArrayCompress(TCur, TNext) 类
Cyjb.Collections 命名空间

Clone this wiki locally