Example #1
0
        public int Find(string Name)
        {
            if (Name == null)
            {
                return(-1);
            }

            if (TreeNeedsRebuild)
            {
                RebuildTree();
            }

            int Output = 0;

            if (Nodes != null && Nodes.Count > 0)
            {
                H3DPatriciaTreeNode Root;

                Output = PatriciaTree.Traverse(Name, Nodes, out Root);

                if (Nodes[Output].Name != Name)
                {
                    Output = 0;
                }
            }

            return(Output - 1);
        }