Exemple #1
0
        public void Visit(RegistryTree tree)
        {
            this.current.AddRange(tree.Path.Split('\\'));

            if (this.current.Count <= this.parts.Length)
            {
                if (this.StartsWith(this.parts, this.current) == true)
                {
                    foreach (RegistryNode node in tree)
                    {
                        node.Accept(this);
                    }
                }
            }

            if (this.current.Count > this.parts.Length)
            {
                if (this.StartsWith(this.current, this.parts) == true)
                {
                    this.keys.Add(this.current[this.parts.Length]);
                }
            }

            this.current.Clear();
        }
Exemple #2
0
 public void Register(RegistryTree tree)
 {
     this.trees.Add(tree);
 }