AddressMatch.AddrSet.FindGNodeListInHashTable C# (CSharp) Méthode

FindGNodeListInHashTable() public méthode

Find node with specific name in HashTable
public FindGNodeListInHashTable ( string name ) : List
name string name of node
Résultat List
        public List<GraphNode> FindGNodeListInHashTable(string name)
        {
            List<GraphNode> resultList = new List<GraphNode>();

            TableNode node = AddrGraph.NodeTable[name] as TableNode;
            resultList.Add(node.GNode);

            while (node.Next != null)
            {
                resultList.Add(node.Next.GNode);
                node = node.Next;
            }

            return resultList;
        }