コード例 #1
0
ファイル: GraphNode.cs プロジェクト: krbysn/jabber-net
 /// <summary>
 /// Adds a new child node
 /// </summary>
 /// <param name="key">The key for the child</param>
 /// <param name="data">The data for the child</param>
 /// <returns>The child node added to the graph.</returns>
 public GraphNode Add(object key, object data)
 {
     GraphNode n = new GraphNode(key, data, m_sorted);
     n.m_parent = this;
     m_children.Add(key, n);
     return n;
 }
コード例 #2
0
ファイル: GraphNode.cs プロジェクト: eNoise/cyclops-chat
 public GraphNodeEnumerator(GraphNode n)
 {
     m_arrayEnumerator = n.m_children.GetEnumerator();
 }