Example #1
0
 private VirtualRegistryKey GetKey(VirtualRegistryKey node, String path)
 {
     if (path.Length == 0) {
         return node;
     }
     String first = path.Split('/')[0];
     String rest = path.Substring(first.Length).TrimStart('/');
     foreach (VirtualRegistryKey child in node.GetChildren()) {
         if (child.Name.ToLower().Equals(first.ToLower())) {
             return GetKey(child, rest);
         }
     }
     return null;
 }